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
Experienced Solver
Experienced Solver
Posts: 96
Joined: Thu Apr 11, 2019 12:50 am

Grid Basic doubt with constructor

Post by Nick » Sat May 23, 2020 8:00 pm

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
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Tue Jun 07, 2016 1:07 pm

Re: Grid Basic doubt with constructor

Post by Kvaz1r » Sat May 23, 2020 9:35 pm

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

Code: Select all

wxGrid::wxGridSelectRows

Post Reply