int BC_OKButton::keypress_event()
{
if(get_keypress() == RETURN) return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int BC_OKButton::calculate_h()
int BC_CancelButton::keypress_event()
{
if(get_keypress() == ESC) return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int BC_CancelButton::calculate_h()
return 0;
}
-
+void BC_GenericButton::set_text(const char *cp)
+{
+ strncpy(text, cp, sizeof(text));
+ draw_face();
+}
int BC_OKTextButton::keypress_event()
{
if(get_keypress() == RETURN) return handle_event();
- return 0;
+ return context_help_check_and_show();
}
int BC_CancelTextButton::keypress_event()
{
if(get_keypress() == ESC) return handle_event();
- return 0;
+ return context_help_check_and_show();
}