#include <ndk++.h>
Inheritance diagram for NDK_XX::NDKDlgChoiceBox:
Public Methods | |
NDKDlgChoiceBox (NDKDlgControl *parent, int id, const string &title,int lines, int cols, int y, int x,int style=tabstop|framed|notify) | |
Protected Methods | |
void | initialize_items () |
|
Definition at line 1049 of file ndk++.h.
01049 {} 01050 01051 ///called at the end of the modal loop 01052 virtual void on_dlg_term(){ } 01053 01054 ///called if user presses one of the 'exits' 01055 virtual bool can_close(); 01056 01057 ///called when the user enters a control |
|
Definition at line 1477 of file ndk++.cc. References NDK_XX::NDKDlgListBox::bottom_item, NDK_XX::NDKDlgListBox::curr_item, NDK_XX::NDKDlgControl::has_frame(), NDK_XX::NDKDlgListBox::items, NDK_XX::NDKDlgListBox::pos_x, NDK_XX::NDKDlgListBox::pos_y, NDK_XX::NDKDlgListBox::show_empty(), and NDK_XX::NDKDlgListBox::top_item.
01478 { 01479 curr_item=top_item=bottom_item=0; 01480 for(int i=pos_y;i<maxy();i++){ 01481 items.push_back(new NDKDlgRadioButton(this,-1,"",1,width()-pos_x-has_frame() ,i,pos_x)); 01482 } 01483 show_empty(); 01484 } |