]>
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 | ||
15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
16 | #pragma interface "minifram.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/frame.h" | |
20 | ||
21 | class WXDLLEXPORT wxMiniFrame : public wxFrame | |
22 | { | |
23 | public: | |
24 | wxMiniFrame() { } | |
25 | ||
26 | bool Create(wxWindow *parent, | |
27 | wxWindowID id, | |
28 | const wxString& title, | |
29 | const wxPoint& pos = wxDefaultPosition, | |
30 | const wxSize& size = wxDefaultSize, | |
31 | long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, | |
32 | const wxString& name = wxFrameNameStr) | |
33 | { | |
34 | return wxFrame::Create(parent, id, title, pos, size, | |
35 | style | | |
36 | wxFRAME_TOOL_WINDOW | | |
37 | (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name); | |
38 | } | |
39 | ||
40 | wxMiniFrame(wxWindow *parent, | |
41 | wxWindowID id, | |
42 | const wxString& title, | |
43 | const wxPoint& pos = wxDefaultPosition, | |
44 | const wxSize& size = wxDefaultSize, | |
45 | long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, | |
46 | const wxString& name = wxFrameNameStr) | |
47 | { | |
48 | Create(parent, id, title, pos, size, style, name); | |
49 | } | |
50 | ||
51 | protected: | |
52 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame) | |
53 | }; | |
54 | ||
55 | #endif | |
56 | // _WX_MINIFRAM_H_ |