#include <ndk++.h>
Inheritance diagram for NDK_XX::SelectionBox:
Public Methods | |
SelectionBox (Control *parent, int id, const string &title,int lines, int cols, int y, int x,int style=tabstop|framed|notify) | |
SelectionBox (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. |
|
SelectionBox Constructor See parameters for class Control Definition at line 1264 of file ndk++.h. References NDK_XX::MenuBar::b_own_items, NDK_XX::Control::hidden, NDK_XX::MenuBar::is_main_menu, NDK_XX::Control::notify, NDK_XX::MenuBar::orientation, NDK_XX::Control::tabstop, and NDK_XX::Control::title. Referenced by NDK_XX::ListBox::set_text().
|
|
SelectionBox Constructor See parameters for class Control Definition at line 1278 of file ndk++.h. References NDK_XX::MenuBar::orientation.
01278 {return orientation;} 01279 int execute(); 01280 01281 /// specialized add_item: a MenuBar, as oposed to a ListBox 01282 /// adds the visible item at the same time as the data item 01283 /// (implicit to this is that you should not add more data items 01284 /// than the visible ones. 01285 /// This limitation is which allows us to deploy the items each one 01286 /// at its own position. (By now, anyway. Later we may add the ability |
|
Load the visible components of the list.
Definition at line 1534 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::ListItem, NDK_XX::ListBox::pos_x, NDK_XX::ListBox::pos_y, and NDK_XX::ListBox::show_empty(). Referenced by NDK_XX::ListBox::get_count(), and NDK_XX::ListBox::set_text().
01535 { 01536 curr_item=first_visible=last_visible=0; 01537 for(int i=pos_y;i<maxy();i++){ 01538 items.push_back(new ListItem(this,-1,"",1,width()-pos_x-has_frame() ,i,pos_x)); 01539 } 01540 show_empty(); 01541 } |