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

NDK_XX::ChoiceBox Class Reference

#include <ndk++.h>

Inheritance diagram for NDK_XX::ChoiceBox:

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

Public Methods

 ChoiceBox (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::ChoiceBox::ChoiceBox 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 1331 of file ndk++.h.

01332                     {
01333         if(orientation=='v')
01334             return move_down();
01335         ListBox::move_down();
01336         return false;
01337     };  
01338 
01339     int driver(int key);


Member Function Documentation

void NDK_XX::ChoiceBox::initialize_items   [protected]
 

Load the visible components of the list.

Definition at line 1562 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().

01563 {
01564     curr_item=first_visible=last_visible=0;
01565     for(int i=pos_y;i<maxy();i++){
01566         items.push_back(new RadioButton(this,-1,"",1,width()-pos_x-has_frame() ,i,pos_x));
01567     }
01568     show_empty();
01569 }


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