]>
git.saurik.com Git - wxWidgets.git/blob - utils/nplugin/samples/gui/gui.h
3 * Purpose: wxWidgets plugin with a few GUI elements
7 * Copyright: (c) Julian Smart
13 // Define a new application type
14 class MyApp
: public wxPluginApp
16 virtual wxFrame
*OnInit(void);
17 virtual wxPluginFrame
* OnNewInstance(const wxPluginData
& data
);
24 class MyFrame
: public wxPluginFrame
27 MyFrame(const wxPluginData
& data
);
30 void OldOnMenuCommand(int id
);
36 MyCanvas
* rightCanvas
;
37 wxSplitterWindow
* splitter
;
40 class MyCanvas
: public wxScrolledWindow
43 MyCanvas(wxWindow
* parent
, int x
, int y
, int w
, int h
);
46 void OnPaint(wxPaintEvent
& event
);
51 // ID for the menu quit command
53 #define SPLIT_HORIZONTAL 2
54 #define SPLIT_VERTICAL 3
55 #define SPLIT_UNSPLIT 4