Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

NDK_XX::CheckListBox Class Reference

#include <ndk++.h>

Inheritance diagram for NDK_XX::CheckListBox:

NDK_XX::ListBox NDK_XX::Control List of all members.

Public Methods

 CheckListBox (Control *parent, int id, const string &title,int lines, int cols, int y, int x,int style=tabstop|framed|notify)

Protected Methods

void initialize_items ()
 Load the visible components of the list.


Constructor & Destructor Documentation

NDK_XX::CheckListBox::CheckListBox Control   parent,
int    id,
const string &    title,
int    lines,
int    cols,
int    y,
int    x,
int    style = tabstop|framed|notify
[inline]
 

CheckListBox Constructor See parameters for class Control

Definition at line 1304 of file ndk++.h.

References NDK_XX::MenuBar::b_own_items, NDK_XX::MenuBar::is_main_menu, NDK_XX::MenuBar::move_left(), NDK_XX::MenuBar::orientation, and NDK_XX::MenuBar::titlePos.

01308          :
01309     bool b_own_items; ///Should we delete the added items?
01310     char orientation;
01311 
01312     string titlePos;


Member Function Documentation

void NDK_XX::CheckListBox::initialize_items   [protected]
 

Load the visible components of the list.

Definition at line 1548 of file ndk++.cc.

References NDK_XX::ListBox::curr_item, NDK_XX::ListBox::first_visible, NDK_XX::Control::has_frame(), NDK_XX::ListBox::items, NDK_XX::ListBox::last_visible, NDK_XX::ListBox::pos_x, NDK_XX::ListBox::pos_y, and NDK_XX::ListBox::show_empty().

01549 {
01550     curr_item=first_visible=last_visible=0;
01551     for(int i=pos_y;i<maxy();i++){
01552         items.push_back(new CheckButton(this,-1,"",1,width()-pos_x-has_frame() ,i,pos_x));
01553     }
01554     show_empty();
01555 }


The documentation for this class was generated from the following files:
Generated on Thu Oct 10 16:02:12 2002 by doxygen1.2.17