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
See the AddAccelerator method in the window class, assuming it's there. If it isn't, it will be soon ;)
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
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.
Thanks Paul figured it something to do with M$ and XP