Underline Shortcut Characters Using Text Gadgets

Just starting out? Need help? Post your questions and find answers here.
Jumbuck
User
User
Posts: 63
Joined: Mon Nov 03, 2008 8:30 am
Location: Australia

Underline Shortcut Characters Using Text Gadgets

Post by Jumbuck »

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.

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")
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
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Underline Shortcut Characters Using Text Gadgets

Post by Dude »

Jumbuck wrote:my Text Gadgets are now showing no underline but are just prefixed by a & symbol
Fred removed that functionality. Start at this thread for the discussion: http://www.purebasic.fr/english/viewtop ... 28&t=58645
Post Reply