Allow really using wxHeaderCtrl in the grid sample

The "Native" menu item actually only toggled drawing native-lookalike
labels, but didn't use wxHeaderCtrl as could be expected. Rename the
existing menu item to "Native-like" and add the new "Native" one which
really enables the use of wxHeaderCtrl.
This commit is contained in:
Vadim Zeitlin
2019-07-10 16:29:50 +02:00
parent e8712b3c56
commit 7d229dd695
2 changed files with 15 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ class GridFrame : public wxFrame
void ToggleGridSizing( wxCommandEvent& );
void ToggleGridDragCell ( wxCommandEvent& );
void SetNativeColHeader ( wxCommandEvent& );
void SetNativeColLabels ( wxCommandEvent& );
void SetCustomColHeader( wxCommandEvent& );
void SetDefaultColHeader( wxCommandEvent& );
void SetTabBehaviour( wxCommandEvent& );
@@ -162,6 +163,7 @@ public:
ID_CORNERLABELORIENTATION,
ID_COLDEFAULTHEADER,
ID_COLNATIVEHEADER,
ID_COLNATIVELABELS,
ID_COLCUSTOMHEADER,
ID_TAB_STOP,
ID_TAB_WRAP,