]>
git.saurik.com Git - wxWidgets.git/blob - samples/treelay/treelay.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTreeLayout sample
4 // Author: Julian Smart
8 // Copyright: (c) 1998 Julian Smart
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
16 virtual bool OnInit();
18 void TreeTest(wxTreeLayoutStored
& tree
, wxDC
& dc
);
25 class MyFrame
: public wxFrame
29 MyFrame(wxWindow
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
31 void OnCloseWindow(wxCloseEvent
& event
);
32 void OnQuit(wxCommandEvent
& event
);
33 void OnAbout(wxCommandEvent
& event
);
34 void OnLeftRight(wxCommandEvent
& event
);
35 void OnTopBottom(wxCommandEvent
& event
);
40 // Define a new canvas which can receive some events
41 class MyCanvas
: public wxScrolledWindow
44 MyCanvas(wxWindow
*frame
);
45 void OnPaint(wxPaintEvent
& event
);
46 void OnEvent(wxMouseEvent
& event
);
47 void OnChar(wxKeyEvent
& event
);
53 #define TEST_LEFT_RIGHT 3
54 #define TEST_TOP_BOTTOM 4