]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/checklst.mm
Remove wxBitmapHandler code
[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
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/app.h"
13#include "wx/checklst.h"
14#include "wx/log.h"
15
16IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
17BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
18END_EVENT_TABLE()
19// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
20
21bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
22 const wxPoint& pos,
23 const wxSize& size,
24 int n, const wxString choices[],
25 long style,
26 const wxValidator& validator,
27 const wxString& name)
28{
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
30 return false;
31
32 if(m_parent)
33 m_parent->CocoaAddChild(this);
34 return true;
35}
36
37wxCheckListBox::~wxCheckListBox()
38{
39 CocoaRemoveFromParent();
40}
41
42bool wxCheckListBox::IsChecked(size_t item) const
43{
44 return false;
45}
46
47
48void wxCheckListBox::Check(size_t item, bool check)
49{
50}
51