X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcbutton.C;h=00eb8cb716015c84c6f73e13b468b184ab44aafe;hb=0c48864cab7b37268025485c6a227f36b3420030;hp=e4088e55971c841d5286ffb9a124a7913d3ecac5;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcbutton.C b/cinelerra-5.1/guicast/bcbutton.C index e4088e55..00eb8cb7 100644 --- a/cinelerra-5.1/guicast/bcbutton.C +++ b/cinelerra-5.1/guicast/bcbutton.C @@ -290,7 +290,7 @@ int BC_OKButton::resize_event(int w, int h) 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() @@ -354,7 +354,7 @@ int BC_CancelButton::resize_event(int w,int 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() @@ -480,7 +480,11 @@ int BC_GenericButton::draw_face(int flush) return 0; } - +void BC_GenericButton::set_text(const char *cp) +{ + strncpy(text, cp, sizeof(text)); + draw_face(); +} @@ -508,7 +512,7 @@ int BC_OKTextButton::handle_event() int BC_OKTextButton::keypress_event() { if(get_keypress() == RETURN) return handle_event(); - return 0; + return context_help_check_and_show(); } @@ -537,7 +541,7 @@ int BC_CancelTextButton::handle_event() int BC_CancelTextButton::keypress_event() { if(get_keypress() == ESC) return handle_event(); - return 0; + return context_help_check_and_show(); }