IonicWind Software

Aurora Compiler => GUI => Topic started by: donh on February 06, 2006, 06:17:43 PM

Title: Hot Key
Post by: donh on February 06, 2006, 06:17:43 PM
When setting up a GUI and want to define a key to use alt+ Letter usualy it is the & and you would get Exit I see this in the
Menu Editor but not on buttons when testing or skeliton code created.
I modified one of the demos that created buttons and it did not work is there someting else that is required or not implemented as of yet?


Don
Title: Re: Hot Key
Post by: Parker on February 06, 2006, 06:34:20 PM
See the AddAccelerator method in the window class, assuming it's there. If it isn't, it will be soon ;)
Title: Re: Hot Key
Post by: donh on February 06, 2006, 06:42:34 PM
Thanks

I tried my code again with outthe AddAccelerator class it worked as expected.  But the underline is not present.  Is this a factor of
the size of the button or one of those wonderfull M$ features with XP or could it be a display problem with the resolution I am using on my laptop
1400 x 1050

Don
Title: Re: Hot Key
Post by: Ionic Wind Support Team on February 06, 2006, 07:13:30 PM
XP doesn't display the underlines by default in a menu until after you press the ALT key.  That is if your using themes.

There is a setting to turn them on all the time, forget where it is, might be a registry thing.

Paul.

[Edit]
Found it.  Go to display properties, click on the 'appearance' tab and then click the 'effects' button.
Title: Re: Hot Key
Post by: donh on February 07, 2006, 06:40:35 AM
Thanks Paul figured it something to do with M$ and XP