User forums > Help
hotkey/shortcut view on tooltips
thomas:
--- Quote from: MoonKid on April 01, 2006, 06:49:41 pm ---Is it a wxWidget system or is it C::B specific?
--- End quote ---
The latter.
--- Quote from: MoonKid on April 01, 2006, 06:49:41 pm ---It could be modified. Reading C::B settings/options
if tooltips + shortcuts
read the <tooltip> tag + <shortcut> tag in the xrc files.
--- End quote ---
We do not read in the XRC files. This is done by wxWidgets. What you describe would require us to patch wxWidgets, which is not an option.
MoonKid:
--- Quote from: thomas on April 01, 2006, 07:03:53 pm ---We do not read in the XRC files. This is done by wxWidgets. What you describe would require us to patch wxWidgets, which is not an option.
--- End quote ---
Is that why the toolbars are not customizable?
thomas:
No, the reason why they are not customizable is that they are stored in XRC.
You cannot customise XRC thingies (dialogs, controls, toolbars) in an easy way without using nasty hacks. It is of course technically possible, but an awful lot of work (and not worth the trouble).
There are for example at least three things you could do. One would be to use TinyXML to modify the XRC files (works, but very nasty hack). The second would be to modify wxWidgets (that's even worse). The last would be to query a pointer to the respective objects from wxWidgets one by one and modify them after they have been loaded (very tedious and adds noticeable overhead to startup time).
As I said above, the reason why we aren't putting work into this is that we can already see at this time that our work would be useless. When the action-based event handling system gets merged (which will be one of the first things to happen after version 1.0), toolbars will no longer be loaded from XRC, so all the tedious work will be thrown overboard.
takeshimiya:
--- Quote from: thomas on April 06, 2006, 04:23:46 pm ---As I said above, the reason why we aren't putting work into this is that we can already see at this time that our work would be useless. When the action-based event handling system gets merged (which will be one of the first things to happen after version 1.0), toolbars will no longer be loaded from XRC, so all the tedious work will be thrown overboard.
--- End quote ---
That's the way to go. :)
About XRC hardcoding-ness, do you know how to make the XRC strings translatable?
With language catalogs (.po) or with different xrc's for each language?
Navigation
[0] Message Index
[*] Previous page
Go to full version