#include <ndk++.h>
Inheritance diagram for NDK_XX::PushButton:
Public Methods | |
PushButton (Control *parent, int id, const string &title,int lines, int cols, int y, int x,int style=tabstop|notify|framed) | |
PushButton (Control *parent, int id, const string &title,int y, int x) | |
void | set_text (const string &txt) |
Usualy, a control in a dialog has some kind of text on it... | |
int | action () |
action fired when user presses Enter |
|
PushButton Constructor See parameters for class Control Definition at line 401 of file ndk++.cc. References NDK_XX::Control::enable_notify(), NDK_XX::Control::framed, NDK_XX::Control::set_style(), set_text(), and NDK_XX::Label::text. Referenced by NDK_XX::EditNumber::EditNumber().
00405 :Button(parent,id, title,lines,cols,y,x,(style&=~framed)) 00406 { 00407 enable_notify(false); 00408 set_style(framed,true); 00409 set_text(text); 00410 enable_notify(); 00411 } |
|
PushButton Constructor See parameters for class Control Definition at line 415 of file ndk++.cc. References NDK_XX::Control::enable_notify(), NDK_XX::Control::framed, NDK_XX::Control::set_style(), set_text(), and NDK_XX::Label::text.
|
|
action fired when user presses Enter
Implements NDK_XX::Button. Definition at line 725 of file ndk++.h. References NDK_XX::ListItemData::is_checked(), and NDK_XX::ListItemData::set_state().
00725 { 00726 bool prev_state=is_checked(); 00727 set_state((int)Control::checked,new_state); 00728 }; |
|
Usualy, a control in a dialog has some kind of text on it...
Reimplemented from NDK_XX::Label. Definition at line 428 of file ndk++.cc. References NDK_XX::Control::has_frame(), NDK_XX::Label::max_len(), NDK_XX::Label::pos_x, and NDK_XX::Label::text. Referenced by NDK_XX::PropertyDialog::cancel_to_close(), NDK_XX::EditNumber::EditNumber(), and PushButton().
|