]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/cocoa/checklst.mm
Don't set value unnecessarily in wxSpinCtrl::Create() in wxMSW.
[wxWidgets.git] / src / cocoa / checklst.mm
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13
14#if wxUSE_CHECKLISTBOX
15
16#include "wx/checklst.h"
17
18#ifndef WX_PRECOMP
19 #include "wx/log.h"
20 #include "wx/app.h"
21#endif //WX_PRECOMP
22
23BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
24END_EVENT_TABLE()
25// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
26
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
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{
59}
60
61bool wxCheckListBox::IsChecked(unsigned int item) const
62{
63 return false;
64}
65
66
67void wxCheckListBox::Check(unsigned int item, bool check)
68{
69}
70
71#endif