C charlesg Member Licensed User Longtime User Jan 18, 2015 #1 I can cope with the code for ALT-A shortcut on a button (see png) I would be grateful if somebody could help with putting the <underscore>A in the button text. Thanks Attachments buttoUnderscore.png 5.6 KB · Views: 615
I can cope with the code for ALT-A shortcut on a button (see png) I would be grateful if somebody could help with putting the <underscore>A in the button text. Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2015 #2 You can use this sub: Code: Sub DisableMnemonicParsing(b As Button) Dim jo As JavaObject = b jo.RunMethod("setMnemonicParsing", Array(False)) End Sub Upvote 0
You can use this sub: Code: Sub DisableMnemonicParsing(b As Button) Dim jo As JavaObject = b jo.RunMethod("setMnemonicParsing", Array(False)) End Sub
C charlesg Member Licensed User Longtime User Feb 2, 2015 #3 Couldn't really get what I wanted so I did what any programmer would do: I cheated. I drew up some buttons in Inkscape (see svg file in files) and exported them individually to png. Faked a button in B4J with an ImageView and it does all I want. The ImageView cannot accept focus but this is not a problem for me as I hate the <tab> key. It is the enemy of fast data entry. Attachments ButtonShortcut.zip ButtonShortcut.zip 33.2 KB · Views: 466 Upvote 0
Couldn't really get what I wanted so I did what any programmer would do: I cheated. I drew up some buttons in Inkscape (see svg file in files) and exported them individually to png. Faked a button in B4J with an ImageView and it does all I want. The ImageView cannot accept focus but this is not a problem for me as I hate the <tab> key. It is the enemy of fast data entry.