Grid Basic doubt with constructor Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Nick
Earned some good credits
Earned some good credits
Posts: 107
Joined: Thu Apr 11, 2019 12:50 am

Grid Basic doubt with constructor

Post by Nick »

How do I do that?
https://docs.wxwidgets.org/trunk/classw ... 17ccc84637
https://docs.wxwidgets.org/trunk/classw ... d5f67e08d6

wxWidgets information

Code: Select all

bool wxGrid::CreateGrid 	( 	int  	numRows,
		int  	numCols,
		wxGridSelectionModes  	selmode = wxGridSelectCells 
	) 	
I'm trying to put Option 3

Code: Select all

Grid->CreateGrid(10, 3, wxGridSelectRows); // NO WORK
I can do this, but it feels wrong!

Code: Select all

Grid->CreateGrid(10, 3, wxGrid::wxGridSelectRows);
Kvaz1r
Super wx Problem Solver
Super wx Problem Solver
Posts: 357
Joined: Tue Jun 07, 2016 1:07 pm

Re: Grid Basic doubt with constructor

Post by Kvaz1r »

When you doubt - just look in the sample. It's inner enum so using '::' is right.

Code: Select all

wxGrid::wxGridSelectRows
Post Reply