]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/statbox.h
Make storing non-trivial data in wxThreadSpecificInfo possible.
[wxWidgets.git] / include / wx / osx / statbox.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/statbox.h
6762286d
SC
3// Purpose: wxStaticBox class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
6762286d
SC
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_STATBOX_H_
12#define _WX_STATBOX_H_
13
14#include "wx/control.h"
15
6762286d
SC
16// Group box
17class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
18{
19 DECLARE_DYNAMIC_CLASS(wxStaticBox)
20
21 public:
22 inline wxStaticBox() {}
23 inline wxStaticBox(wxWindow *parent, wxWindowID id,
24 const wxString& label,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
27 long style = 0,
28 const wxString& name = wxStaticBoxNameStr)
29 {
30 Create(parent, id, label, pos, size, style, name);
31 }
32
33 bool Create(wxWindow *parent, wxWindowID id,
34 const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxString& name = wxStaticBoxNameStr);
39
6dd0883d
SN
40 virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
41 virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
6762286d
SC
42
43 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
03647350 44
6762286d
SC
45 virtual bool AcceptsFocus() const { return false; }
46
47 // protect native font of box
48 virtual bool SetFont( const wxFont &font );
49};
50
5c6eb3a8 51#endif
6762286d 52 // _WX_STATBOX_H_