diff --git a/include/mask.cpp b/include/mask.cpp index f92a5cbf0..19fd4f6d8 100755 --- a/include/mask.cpp +++ b/include/mask.cpp @@ -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;