#include <ndk++.h>
Inheritance diagram for NDK_XX::EditNumber:
Public Methods | |
EditNumber (Control *parent, int id, const string &text,int lines, int cols, int y, int x,int style=framed|editable|tabstop|notify) | |
int | edit (int key) |
This is the specialized driver for edition. |
|
EditNumber Constructor See parameters for class Control Definition at line 603 of file ndk++.h. References NDK_XX::Control::framed, NDK_XX::Control::notify, NDK_XX::PushButton::PushButton(), NDK_XX::PushButton::set_text(), NDK_XX::Control::tabstop, and NDK_XX::Control::title. Referenced by NDK_XX::Label::operator[]().
00603 { 00604 public: 00605 /** 00606 PushButton Constructor 00607 See parameters for class Control |
|
This is the specialized driver for edition.
Reimplemented from NDK_XX::Edit. Reimplemented in NDK_XX::EditDate, and NDK_XX::EditDouble. Definition at line 758 of file ndk++.cc. References KEY_ENTER.
00759 { 00760 switch(key) { 00761 case KEY_BACKSPACE: 00762 case KEY_DC: 00763 case KEY_LEFT: 00764 case KEY_RIGHT: 00765 case KEY_ENTER: 00766 return Edit::edit(key); 00767 default: 00768 if(isdigit(key)) 00769 return Edit::edit(key); 00770 else 00771 beep(); 00772 break; 00773 } 00774 return FALSE; 00775 } |