]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/minifram.h
adding standard menu items for cocoa, adding translation macro to menulabels, fixes...
[wxWidgets.git] / include / wx / palmos / minifram.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/minifram.h
3// Purpose: wxMiniFrame class
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MINIFRAM_H_
13#define _WX_MINIFRAM_H_
14
15#include "wx/frame.h"
16
17class WXDLLIMPEXP_CORE wxMiniFrame : public wxFrame
18{
19public:
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
47protected:
48 DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame)
49};
50
51#endif
52 // _WX_MINIFRAM_H_