NIREP
|
00001 00002 // Name: panel.h 00003 // Purpose: 00004 // Author: James Harris II 00005 // Modified by: 00006 // Created: 23/03/2008 18:57:59 00007 // RCS-ID: 00008 // Copyright: All rights reserved 00009 // Licence: 00011 00012 #ifndef _PAGE_H_ 00013 #define _PAGE_H_ 00014 00015 00020 00021 00022 00027 00028 class page; 00030 00035 00036 #define ID_PANEL1 10001 00037 #define SYMBOL_PANEL_STYLE wxSUNKEN_BORDER|wxTAB_TRAVERSAL 00038 #define SYMBOL_PANEL_IDNAME ID_PANEL1 00039 #define SYMBOL_PANEL_SIZE wxDefaultSize 00040 #define SYMBOL_PANEL_POSITION wxDefaultPosition 00041 00042 00043 00048 class page: public wxPanel 00049 { 00050 DECLARE_DYNAMIC_CLASS( panel ) 00051 DECLARE_EVENT_TABLE() 00052 00053 public: 00055 page(); 00056 page(wxWindow* parent, wxWindowID id = ID_PANEL1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSUNKEN_BORDER|wxTAB_TRAVERSAL); 00057 00059 bool Create(wxWindow* parent, wxWindowID id = ID_PANEL1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSUNKEN_BORDER|wxTAB_TRAVERSAL); 00060 00062 ~page(); 00063 00065 void Init(); 00066 00068 void CreateControls(); 00069 00071 00073 00075 00077 wxBitmap GetBitmapResource( const wxString& name ); 00078 00080 wxIcon GetIconResource( const wxString& name ); 00082 00084 static bool ShowToolTips(); 00085 00088 }; 00089 00090 #endif 00091 // _PAGE_H_