User forums > Using Code::Blocks
[Feature Request] keyboard shortcuts for user defined tools
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:
--- End quote ---
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..
--- End quote ---
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..
--- End quote ---
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.
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.
--- End quote ---
--- 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:
--- End quote ---
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.
--- End quote ---
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.
--- End quote ---
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
Navigation
[0] Message Index
[*] Previous page
Go to full version