]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/checklst.mm
Use wxWindow::Refresh() instead of artificial wxPaintEvent in the test.
[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
526954c5 9// Licence: wxWindows 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 22
da0634c1
DE
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
aa61d352 61bool wxCheckListBox::IsChecked(unsigned int item) const
da0634c1
DE
62{
63 return false;
64}
65
66
aa61d352 67void wxCheckListBox::Check(unsigned int item, bool check)
da0634c1
DE
68{
69}
70
2e5cb6c2 71#endif