]>
Commit | Line | Data |
---|---|---|
ffecfa5a JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/palmos/minifram.h | |
3 | // Purpose: wxMiniFrame class | |
e1d63b79 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 10/13/04 | |
e1d63b79 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_MINIFRAM_H_ | |
13 | #define _WX_MINIFRAM_H_ | |
14 | ||
ffecfa5a JS |
15 | #include "wx/frame.h" |
16 | ||
53a2db12 | 17 | class WXDLLIMPEXP_CORE wxMiniFrame : public wxFrame |
ffecfa5a JS |
18 | { |
19 | public: | |
20 | wxMiniFrame() { } | |
21 | ||
22 | bool Create(wxWindow *parent, | |
23 | wxWindowID id, | |
24 | const wxString& title, | |
25 | const wxPoint& pos = wxDefaultPosition, | |
26 | const wxSize& size = wxDefaultSize, | |
27 | long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, | |
28 | const wxString& name = wxFrameNameStr) | |
29 | { | |
30 | return wxFrame::Create(parent, id, title, pos, size, | |
31 | style | | |
32 | wxFRAME_TOOL_WINDOW | | |
33 | (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name); | |
34 | } | |
35 | ||
36 | wxMiniFrame(wxWindow *parent, | |
37 | wxWindowID id, | |
38 | const wxString& title, | |
39 | const wxPoint& pos = wxDefaultPosition, | |
40 | const wxSize& size = wxDefaultSize, | |
41 | long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, | |
42 | const wxString& name = wxFrameNameStr) | |
43 | { | |
44 | Create(parent, id, title, pos, size, style, name); | |
45 | } | |
46 | ||
47 | protected: | |
48 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame) | |
49 | }; | |
50 | ||
51 | #endif | |
52 | // _WX_MINIFRAM_H_ |