1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Jorgen Bodde
8 // Copyright: (c) Jorgen Bodde
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _LAYOUTTEST_H_
13 #define _LAYOUTTEST_H_
23 * Forward declarations
26 ////@begin forward declarations
27 ////@end forward declarations
33 ////@begin control identifiers
34 #define ID_DIALOG 10001
35 #define SYMBOL_LAYOUTTEST_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
36 #define SYMBOL_LAYOUTTEST_TITLE _("Layout Test")
37 #define SYMBOL_LAYOUTTEST_IDNAME ID_DIALOG
38 #define SYMBOL_LAYOUTTEST_SIZE wxSize(400, 300)
39 #define SYMBOL_LAYOUTTEST_POSITION wxDefaultPosition
40 #define ID_PANEL1 10006
41 #define ID_BUTTON 10007
42 ////@end control identifiers
49 #define wxCLOSE_BOX 0x1000
51 #ifndef wxFIXED_MINSIZE
52 #define wxFIXED_MINSIZE 0
56 * LayoutTest class declaration
59 class LayoutTest
: public wxPanel
61 DECLARE_CLASS( LayoutTest
)
67 LayoutTest( wxWindow
* parent
, wxWindowID id
= SYMBOL_LAYOUTTEST_IDNAME
, const wxString
& caption
= SYMBOL_LAYOUTTEST_TITLE
, const wxPoint
& pos
= SYMBOL_LAYOUTTEST_POSITION
, const wxSize
& size
= SYMBOL_LAYOUTTEST_SIZE
, long style
= SYMBOL_LAYOUTTEST_STYLE
);
70 bool Create( wxWindow
* parent
, wxWindowID id
= SYMBOL_LAYOUTTEST_IDNAME
, const wxString
& caption
= SYMBOL_LAYOUTTEST_TITLE
, const wxPoint
& pos
= SYMBOL_LAYOUTTEST_POSITION
, const wxSize
& size
= SYMBOL_LAYOUTTEST_SIZE
, long style
= SYMBOL_LAYOUTTEST_STYLE
);
72 /// Creates the controls and sizers
73 void CreateControls();
75 ////@begin LayoutTest event handler declarations
77 ////@end LayoutTest event handler declarations
79 ////@begin LayoutTest member function declarations
82 /// Retrieves bitmap resources
83 wxBitmap
GetBitmapResource( const wxString
& name
);
85 /// Retrieves icon resources
86 wxIcon
GetIconResource( const wxString
& name
);
87 ////@end LayoutTest member function declarations
89 /// Should we show tooltips?
90 static bool ShowToolTips();
92 ////@begin LayoutTest member variables
93 ////@end LayoutTest member variables