]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/checklst.mm
Improve sizer support in generic wxNotebook. Fix the widgets sample
[wxWidgets.git] / src / cocoa / checklst.mm
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/checklst.mm
3// Purpose: wxCheckListBox
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/18
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
065e208e 9// Licence: wxWidgets licence
da0634c1
DE
10/////////////////////////////////////////////////////////////////////////////
11
449c5673 12#include "wx/wxprec.h"
16c81607
RN
13
14#if wxUSE_CHECKLISTBOX
15
449c5673
DE
16#ifndef WX_PRECOMP
17 #include "wx/log.h"
18 #include "wx/app.h"
19 #include "wx/checklst.h"
20#endif //WX_PRECOMP
da0634c1
DE
21
22IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
23BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
24END_EVENT_TABLE()
25// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
26
584ad2a3
MB
27bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
28 const wxPoint& pos,
29 const wxSize& size,
30 const wxArrayString& choices,
31 long style,
32 const wxValidator& validator,
33 const wxString& name)
34{
35 wxCArrayString chs(choices);
36
37 return Create(parent, winid, pos, size, chs.GetCount(), chs.GetStrings(),
38 style, validator, name);
39}
40
da0634c1
DE
41bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
42 const wxPoint& pos,
43 const wxSize& size,
44 int n, const wxString choices[],
45 long style,
46 const wxValidator& validator,
47 const wxString& name)
48{
49 if(!CreateControl(parent,winid,pos,size,style,validator,name))
50 return false;
51
52 if(m_parent)
53 m_parent->CocoaAddChild(this);
54 return true;
55}
56
57wxCheckListBox::~wxCheckListBox()
58{
da0634c1
DE
59}
60
61bool wxCheckListBox::IsChecked(size_t item) const
62{
63 return false;
64}
65
66
67void wxCheckListBox::Check(size_t item, bool check)
68{
69}
70
2e5cb6c2 71#endif