Underline Shortcut Characters Using Text Gadgets
Posted: Mon Dec 12, 2016 5:45 am
For a long time using Version 5.11 the following code always worked.
I was using this method instead of normal Buttons to be able to set text and background colours. In all other respects they worked like a normal Button.
The shortcut character in both Menus and Text Gadgets were always underlined.
Since changing to Version 5.43 I know find Menus are underlined as before but my Text Gadgets are now showing no underline but are
just prefixed by a & symbol. (They still respond to any ALT+Character. Just no underline)
Can any member tell me why the difference between the two Purebasic versions and is there a fix?
I have hundreds of these type Buttons spread across many programs.
Thanks
__________________________________________________
Code tags added
12.12.2016
RSBasic
I was using this method instead of normal Buttons to be able to set text and background colours. In all other respects they worked like a normal Button.
The shortcut character in both Menus and Text Gadgets were always underlined.
Code: Select all
TextGadget(#TextGadget_FindWord_Join, 260, 370, 50, 25, "&Find",#SS_NOTIFY|#WS_DLGFRAME|#SS_CENTER|#SS_CENTERIMAGE)
SetGadgetColor(#TextGadget_FindWord_Join, #PB_Gadget_FrontColor,RGB(0,0,255))
SetGadgetColor(#TextGadget_FindWord_Join, #PB_Gadget_BackColor,RGB(255,255,170))
SetGadgetFont(#TextGadget_FindWord_Join, FontID(Font2))
GadgetToolTip(#TextGadget_FindWord_Join, "Check Valid Word")
just prefixed by a & symbol. (They still respond to any ALT+Character. Just no underline)
Can any member tell me why the difference between the two Purebasic versions and is there a fix?
I have hundreds of these type Buttons spread across many programs.
Thanks
__________________________________________________
Code tags added
12.12.2016
RSBasic