News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

[Feature Request] keyboard shortcuts for user defined tools

Started by dierk, March 19, 2007, 02:04:52 PM

Previous topic - Next topic

Pecan

@ jamieo

Quote from: jamieo on April 02, 2007, 03:16:10 PM

I see you finally implemented the change I suggested above. :shock: :roll:

Well, I'd have made the changes earlier, but I couldn't see what you were talking about because your big head was in the way. :roll:

Quote from: jamieo on March 24, 2007, 10:47:52 PM
One last thing before I pack up my toys and play elsewhere..

Welcome back.

rjmyst3

Quote from: jamieo on April 02, 2007, 03:16:10 PM
Good thinking Ceniza, I wonder if that works with normal win32 menus or if it's just a wx thing..

It is a wx thing. It parses the menu text for a tab. If the text after the tab can be interpreted as a key combination, it sets the accelerator property for the platform.

Try creating a menu item with an invalid key combo and note how the wx code removes the key combo portion.
[url="http://wxformbuilder.org"]http://wxformbuilder.org[/url]

jamieo

Quote from: jamieo on March 24, 2007, 09:18:52 PM
Removing the save within cbKeyBinder::OnRelease makes for a tools menu that is fully saved and restored - every time.
Quote from: Pecan on April 02, 2007, 03:57:49 PM
Well, I'd have made the changes earlier, but I couldn't see what you were talking about because your big head was in the way. :roll:
Oh dear....  I don't think it's my ego that's getting in the way of progress....

Quote from: Pecan on April 02, 2007, 03:57:49 PM
Welcome back.
Thank you for your warm welcome.  :)  ...but I never left.  While your attitude did convince me to stop trying to contribute to this project and go back to VS (at least until this project matures - along with it's developers), it doesn't mean cb isn't of any use to me on my usb key.  ;)

jamieo

Quote from: rjmyst3 on April 02, 2007, 04:41:36 PM
It is a wx thing. It parses the menu text for a tab. If the text after the tab can be interpreted as a key combination, it sets the accelerator property for the platform.
I thought it might be as I'd kick myself if accelerators had been that easy in win32 all this time!  Thanks for explaining how it works, I don't know how language resources are handled in cb (seem to be hardcoded) but this might have been a better approach for customising all the menu shortcuts.

Jamie