]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/minifram.h
Add test for absence of events from wxSpinCtrlDouble ctor.
[wxWidgets.git] / interface / wx / minifram.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: minifram.h
e54c96f1 3// Purpose: interface of wxMiniFrame
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxMiniFrame
7c913512 10
ba1d7a6c
FM
11 A miniframe is a frame with a small title bar.
12 It is suitable for floating toolbars that must not take up too much screen area.
7c913512 13
ba1d7a6c 14 An example of mini frame can be seen in the @ref page_samples_dialogs
cdbcf4c2 15 using the "Mini frame" command of the "Generic dialogs" submenu.
7c913512 16
23324ae1 17 @beginStyleTable
8c6791e4 18 @style{wxICONIZE}
ba1d7a6c 19 Display the frame iconized (minimized) (Windows only).
8c6791e4 20 @style{wxCAPTION}
ba1d7a6c 21 Puts a caption on the frame.
8c6791e4 22 @style{wxMINIMIZE}
ba1d7a6c 23 Identical to wxICONIZE.
8c6791e4 24 @style{wxMINIMIZE_BOX}
ba1d7a6c 25 Displays a minimize box on the frame (Windows and Motif only).
8c6791e4 26 @style{wxMAXIMIZE}
ba1d7a6c 27 Displays the frame maximized (Windows only).
8c6791e4 28 @style{wxMAXIMIZE_BOX}
ba1d7a6c 29 Displays a maximize box on the frame (Windows and Motif only).
8c6791e4 30 @style{wxCLOSE_BOX}
ba1d7a6c 31 Displays a close box on the frame.
8c6791e4 32 @style{wxSTAY_ON_TOP}
ba1d7a6c 33 Stay on top of other windows (Windows only).
8c6791e4 34 @style{wxSYSTEM_MENU}
ba1d7a6c 35 Displays a system menu (Windows and Motif only).
8c6791e4 36 @style{wxRESIZE_BORDER}
d13b34d3 37 Displays a resizable border around the window.
23324ae1 38 @endStyleTable
7c913512 39
ba1d7a6c
FM
40 @remarks
41 This class has miniframe functionality under Windows and GTK, i.e. the presence
42 of mini frame will not be noted in the task bar and focus behaviour is different.
43 On other platforms, it behaves like a normal frame.
44
23324ae1
FM
45 @library{wxcore}
46 @category{managedwnd}
7c913512 47
e54c96f1 48 @see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
23324ae1
FM
49*/
50class wxMiniFrame : public wxFrame
51{
52public:
ba1d7a6c
FM
53 /**
54 Default ctor.
55 */
56 wxMiniFrame();
57
23324ae1
FM
58 /**
59 Constructor, creating the window.
3c4f71cc 60
7c913512 61 @param parent
4cc4bfaf
FM
62 The window parent. This may be @NULL. If it is non-@NULL, the frame will
63 always be displayed on top of the parent window on Windows.
7c913512 64 @param id
ba1d7a6c 65 The window identifier. It may take a value of -1 to indicate a default value.
7c913512 66 @param title
4cc4bfaf 67 The caption to be displayed on the frame's title bar.
7c913512 68 @param pos
4cc4bfaf 69 The window position. The value wxDefaultPosition indicates a default position,
ba1d7a6c 70 chosen by either the windowing system or wxWidgets, depending on platform.
7c913512 71 @param size
4cc4bfaf
FM
72 The window size. The value wxDefaultSize indicates a default size, chosen by
73 either the windowing system or wxWidgets, depending on platform.
7c913512 74 @param style
4cc4bfaf 75 The window style. See wxMiniFrame.
7c913512 76 @param name
ba1d7a6c
FM
77 The name of the window. This parameter is used to associate a name with
78 the item, allowing the application user to set Motif resource values for
4cc4bfaf 79 individual windows.
3c4f71cc 80
23324ae1 81 @remarks The frame behaves like a normal frame on non-Windows platforms.
3c4f71cc 82
4cc4bfaf 83 @see Create()
23324ae1 84 */
7c913512
FM
85 wxMiniFrame(wxWindow* parent, wxWindowID id,
86 const wxString& title,
87 const wxPoint& pos = wxDefaultPosition,
88 const wxSize& size = wxDefaultSize,
89 long style = wxCAPTION | wxRESIZE_BORDER,
408776d0 90 const wxString& name = wxFrameNameStr);
23324ae1
FM
91
92 /**
93 Destructor. Destroys all child windows and menu bar if present.
94 */
adaaa686 95 virtual ~wxMiniFrame();
23324ae1
FM
96
97 /**
ba1d7a6c
FM
98 Used in two-step frame construction.
99 See wxMiniFrame() for further details.
23324ae1 100 */
43c48e1e 101 bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
23324ae1
FM
102 const wxPoint& pos = wxDefaultPosition,
103 const wxSize& size = wxDefaultSize,
104 long style = wxCAPTION | wxRESIZE_BORDER,
43c48e1e 105 const wxString& name = wxFrameNameStr);
23324ae1 106};
e54c96f1 107