git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
78 lines
2.2 KiB
C++
78 lines
2.2 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: checklst.cpp
|
|
// Purpose: implementation of wxCheckListBox class
|
|
// Author: AUTHOR
|
|
// Modified by:
|
|
// Created: ??/??/98
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) AUTHOR
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// ============================================================================
|
|
// headers & declarations
|
|
// ============================================================================
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation "checklst.h"
|
|
#endif
|
|
|
|
#include "wx/checklst.h"
|
|
|
|
// ============================================================================
|
|
// implementation
|
|
// ============================================================================
|
|
|
|
#if !USE_SHARED_LIBRARY
|
|
IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
|
|
#endif
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// implementation of wxCheckListBox class
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// define event table
|
|
// ------------------
|
|
BEGIN_EVENT_TABLE(wxCheckListBox, wxListBox)
|
|
EVT_CHAR(wxCheckListBox::OnChar)
|
|
EVT_LEFT_DOWN(wxCheckListBox::OnLeftClick)
|
|
END_EVENT_TABLE()
|
|
|
|
// control creation
|
|
// ----------------
|
|
|
|
// def ctor: use Create() to really create the control
|
|
wxCheckListBox::wxCheckListBox() : wxListBox()
|
|
{
|
|
}
|
|
|
|
// ctor which creates the associated control
|
|
wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
|
|
const wxPoint& pos, const wxSize& size,
|
|
int nStrings, const wxString choices[],
|
|
long style, const wxValidator& val,
|
|
const wxString& name)
|
|
: wxListBox()
|
|
{
|
|
// TODO: you'll probably need a separate Create instead of using
|
|
// the wxListBox one as here.
|
|
Create(parent, id, pos, size, nStrings, choices, style|wxLB_OWNERDRAW, val, name);
|
|
}
|
|
|
|
// check items
|
|
// -----------
|
|
|
|
bool wxCheckListBox::IsChecked(uint uiIndex) const
|
|
{
|
|
// TODO
|
|
return FALSE;
|
|
}
|
|
|
|
void wxCheckListBox::Check(uint uiIndex, bool bCheck)
|
|
{
|
|
// TODO
|
|
return FALSE;
|
|
}
|
|
|
|
|