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