Aggiunta set_prompt ai page_field

git-svn-id: svn://10.65.10.50/trunk@3125 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-06-28 13:29:46 +00:00
parent d0f0d784d0
commit 9188d816eb

View File

@ -33,6 +33,7 @@ protected:
virtual int current() const { return _def; }
public:
virtual void set_prompt(const char* p);
void create(WINDOW parent);
void set_default(byte d) { _def = d; }
void show_button(int i, bool on);
@ -46,6 +47,11 @@ void TPage_field::create(WINDOW parent)
_ctl = new TTagbutton_control(parent, _ctl_data._dlg, 0, 0, 80, 1, "", _values, _def);
}
void TPage_field::set_prompt(const char* p)
{
_ctl->set_caption(p);
}
void TPage_field::show_button(int i, bool on)
{
TTagbutton_control* tag = (TTagbutton_control*)_ctl;