06-07-2009 04:34 AM
Hello,
Want to make a button which can be pressed not only using the mouse but also can using a shortcut key, e.g, making a button which has a "Enter" caption, I hope one can pressed it by press the "ALT+E" shortcut, and also hope display the "E" with underline beside the caption, anyone can advise me how to do this? Thanks.
David
06-07-2009 08:11 AM
You can use Advanced > Key Navigation to assign special buttons (<Enter>, <Esc>) to the button. There is also a property node for that. As far as I know you can't use Alt-E that way.
For this, you need a event structure and monitor the key down events. Whenever the condition (Alt+E) in this case is met, you eigther can use the key focus property or the value signaling property.
To get it underlined, just mark the character on your button and select Style Underline from the fonts drop-down.
Felix
06-08-2009 12:24 AM
Find the Eample VI.
Source link:http://forums.ni.com/ni/board/message?board.id=170&message.id=398480#M398480
06-08-2009 01:08 AM
Hello F.S,
For the marking underline to the "E", it seems can not just mark the only one character, e.g., if the button's label is "Enter (E)", when just select the 'E', then take underline, the all strings is marked the underline, how to take affecting just to the 'E'?
David