Shortcut tooltip elaborates on how to clear shortcut
A user was having trouble figuring this out on fltk.general, seemed like a tooltip could have helped, so added it.
This commit is contained in:
parent
2f0be9d537
commit
2b88ce521d
@ -413,7 +413,7 @@ ive to the origin at construction time");
|
||||
} // Fl_Group* o
|
||||
{ // This is a special button that grabs keystrokes directly
|
||||
Shortcut_Button* o = new Shortcut_Button(95, 210, 310, 20, "Shortcut:");
|
||||
o->tooltip("The shortcut key for the widget.");
|
||||
o->tooltip("The shortcut key for the widget.\nUse 'Backspace' key to clear.");
|
||||
o->box(FL_DOWN_BOX);
|
||||
o->color(FL_BACKGROUND2_COLOR);
|
||||
o->selection_color(FL_BACKGROUND2_COLOR);
|
||||
|
@ -362,7 +362,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 1 te
|
||||
label {Shortcut:}
|
||||
callback shortcut_in_cb
|
||||
comment {This is a special button that grabs keystrokes directly}
|
||||
tooltip {The shortcut key for the widget.} xywh {95 210 310 20} box DOWN_BOX color 7 selection_color 7 labelfont 1 labelsize 11 align 4
|
||||
tooltip {The shortcut key for the widget.\nUse 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selection_color 7 labelfont 1 labelsize 11 align 4
|
||||
code0 {\#include "Shortcut_Button.h"}
|
||||
class Shortcut_Button
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user