]>
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
17 void TreeTest(wxTreeLayoutStored
& tree
, wxDC
& dc
);
24 class MyFrame
: public wxFrame
28 MyFrame(wxWindow
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
);
30 void OnCloseWindow(wxCloseEvent
& event
);
31 void OnQuit(wxCommandEvent
& event
);
32 void OnAbout(wxCommandEvent
& event
);
33 void OnLeftRight(wxCommandEvent
& event
);
34 void OnTopBottom(wxCommandEvent
& event
);
39 // Define a new canvas which can receive some events
40 class MyCanvas
: public wxScrolledWindow
43 MyCanvas(wxWindow
*frame
);
44 void OnPaint(wxPaintEvent
& event
);
45 void OnEvent(wxMouseEvent
& event
);
46 void OnChar(wxKeyEvent
& event
);
52 #define TEST_LEFT_RIGHT 3
53 #define TEST_TOP_BOTTOM 4