#include <ndk++.h>
Inheritance diagram for NDK_XX::ChoiceBox:
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. |
|
CheckListBox Constructor See parameters for class Control Definition at line 1331 of file ndk++.h.
|
|
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 } |