~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/osx/statbox.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/osx/statbox.h
 
3
// Purpose:     wxStaticBox class
 
4
// Author:      Stefan Csomor
 
5
// Modified by:
 
6
// Created:     1998-01-01
 
7
// RCS-ID:      $Id: statbox.h 70165 2011-12-29 14:42:13Z SN $
 
8
// Copyright:   (c) Stefan Csomor
 
9
// Licence:     wxWindows licence
 
10
/////////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef _WX_STATBOX_H_
 
13
#define _WX_STATBOX_H_
 
14
 
 
15
#include "wx/control.h"
 
16
 
 
17
// Group box
 
18
class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
 
19
{
 
20
  DECLARE_DYNAMIC_CLASS(wxStaticBox)
 
21
 
 
22
 public:
 
23
    inline wxStaticBox() {}
 
24
    inline wxStaticBox(wxWindow *parent, wxWindowID id,
 
25
           const wxString& label,
 
26
           const wxPoint& pos = wxDefaultPosition,
 
27
           const wxSize& size = wxDefaultSize,
 
28
           long style = 0,
 
29
           const wxString& name = wxStaticBoxNameStr)
 
30
    {
 
31
        Create(parent, id, label, pos, size, style, name);
 
32
    }
 
33
 
 
34
    bool Create(wxWindow *parent, wxWindowID id,
 
35
           const wxString& label,
 
36
           const wxPoint& pos = wxDefaultPosition,
 
37
           const wxSize& size = wxDefaultSize,
 
38
           long style = 0,
 
39
           const wxString& name = wxStaticBoxNameStr);
 
40
 
 
41
    virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
 
42
    virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
 
43
 
 
44
    virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
 
45
 
 
46
    virtual bool AcceptsFocus() const { return false; }
 
47
 
 
48
    // protect native font of box
 
49
    virtual bool SetFont( const wxFont &font );
 
50
};
 
51
 
 
52
#endif
 
53
    // _WX_STATBOX_H_