]>
git.saurik.com Git - wxWidgets.git/blob - samples/newgrid/griddemo.h
4af4564ed2e6cb58f9057153b31cc1c50d7f921b
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Grid control wxWindows sample
4 // Author: Michael Bedward
7 // Copyright: (c) Michael Bedward, Julian Smart
8 // Licence: wxWindows license
9 /////////////////////////////////////////////////////////////////////////////
18 class GridApp
: public wxApp
25 class GridFrame
: public wxFrame
29 wxLogTextCtrl
*logger
;
33 void ToggleRowLabels( wxCommandEvent
& );
34 void ToggleColLabels( wxCommandEvent
& );
35 void ToggleControlPanel( wxCommandEvent
& );
36 void ToggleCellEdit( wxCommandEvent
& );
37 void SetLabelColour( wxCommandEvent
& );
38 void SetLabelTextColour( wxCommandEvent
& );
39 void SetRowLabelHorizAlignment( wxCommandEvent
& );
40 void SetRowLabelVertAlignment( wxCommandEvent
& );
41 void SetColLabelHorizAlignment( wxCommandEvent
& );
42 void SetColLabelVertAlignment( wxCommandEvent
& );
43 void SetGridLineColour( wxCommandEvent
& );
44 void ClearGrid( wxCommandEvent
& );
46 void About( wxCommandEvent
& );
48 void OnLabelLeftClick( wxGridEvent
& );
49 void OnCellLeftClick( wxGridEvent
& );
50 void OnRowSize( wxGridSizeEvent
& );
51 void OnColSize( wxGridSizeEvent
& );
52 void OnRangeSelected( wxGridRangeSelectEvent
& );
53 void OnCellValueChanged( wxGridEvent
& );
59 void OnSize( wxSizeEvent
& );
60 void OnQuit( wxCommandEvent
& );
62 enum { ID_TOGGLEROWLABELS
= 100,
64 ID_TOGGLECONTROLPANEL
,
67 ID_SETLABELTEXTCOLOUR
,
69 ID_ROWLABELHORIZALIGN
,
72 ID_COLLABELHORIZALIGN
,