[TLabelOwner] [Index] [TListBox]

Class TListBox


File: <toad/listbox.hh>

Super Classes

TControl
TStringManipulator

Attributes

public bool _faked_focus
public TSignal sigDoubleClick
public TSignal sigSelect

Methods

=
public static const unsigned npos =(unsigned)
AdapterChanged
public void AdapterChanged()
Deselect
public void Deselect(unsigned)
DeselectAll
public void DeselectAll()
GetAdapter
public TLBAdapter * GetAdapter()
Returns the TLBAdapter associated with the listbox.
GetFirstSelectedItem
public unsigned GetFirstSelectedItem()
Get the number of the first selected item. Returns ((unsigned)-1) when there's no item selected.
GetItemCount
public unsigned GetItemCount()
Returns the number of items in the listbox's TLBAdapter.
GetNextSelectedItem
public unsigned GetNextSelectedItem()
Get the number of the next selected item. Returns ((unsigned)-1) when there are no more items.
GetSelectedItemCount
public unsigned GetSelectedItemCount()
Returns the number of selected items.
GetTopItemPosition
public unsigned GetTopItemPosition()
Returns the number of the first visible item in the listbox.
IsSelected
public bool IsSelected(unsigned)
Select
public void Select(unsigned)
Set selection to item number 'n' starting with 0.
SetAdapter
public void SetAdapter(TLBAdapter*)
Set a new adapter an destroy the old one
SetTopItemPosition
public unsigned SetTopItemPosition(unsigned)
Make item number 'p' the first visible item.
SetType
public void SetType(EType)
The type can be:
  • TListBox::SINGLE
  • TListBox::MULTIPLE
TListBox
public TListBox(TWindow *p, const string &t, TLBAdapter *lba)
public TListBox(TWindow *p, const string &t, T data)
public TListBox(TWindow *p, const string &t, T data, ulong n)
public ~TListBox()
Type
public EType Type()
destroy
public void destroy()
keyDown
public void keyDown(TKey, char*, unsigned)
mouseLDown
public void mouseLDown(int, int, unsigned)
paint
public void paint()
resize
public void resize()

This page was generated with Stupid -- Another stupid C++ to HTML generator
Written 1998,99 by The Wizards of Zilog
Copyright © 1998,99 by the TOAD Project