#include <ndk++.h>
Inheritance diagram for NDK_XX::CheckListBox:
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. |
|
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; |
|
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 } |