]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/radiobox.mm
fix Alt-letter navigation with spin controls (bug 672974)
[wxWidgets.git] / src / cocoa / radiobox.mm
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/radiobox.mm
3// Purpose: wxRadioBox
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/app.h"
13#include "wx/radiobox.h"
14
15IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
16BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
17END_EVENT_TABLE()
18// WX_IMPLEMENT_COCOA_OWNER(wxRadioBox,NSTextField,NSControl,NSView)
19
20bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
21 const wxString& title,
22 const wxPoint& pos,
23 const wxSize& size,
24 int n, const wxString choices[],
25 int majorDim,
26 long style, const wxValidator& validator,
27 const wxString& name)
28{
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
30 return false;
31 m_cocoaNSView = NULL;
32 if(m_parent)
33 m_parent->CocoaAddChild(this);
34 return true;
35}
36
37wxRadioBox::~wxRadioBox()
38{
39 CocoaRemoveFromParent();
40}
41
42 // selection
43void wxRadioBox::SetSelection(int n)
44{
45}
46
47int wxRadioBox::GetSelection() const
48{
49 return 0;
50}
51
52 // string access
53int wxRadioBox::GetCount() const
54{
55 return 0;
56}
57
58wxString wxRadioBox::GetString(int n) const
59{
60 return wxEmptyString;
61}
62
63void wxRadioBox::SetString(int n, const wxString& label)
64{
65}
66
67 // change the individual radio button state
68void wxRadioBox::Enable(int n, bool enable)
69{
70}
71
72void wxRadioBox::Show(int n, bool show)
73{
74}
75
76 // layout parameters
77int wxRadioBox::GetColumnCount() const
78{
79 return 0;
80}
81
82int wxRadioBox::GetRowCount() const
83{
84 return 0;
85}
86