|
|
Home » Developing U++ » UppHub » User configurable menu system
User configurable menu system [message #33991] |
Fri, 07 October 2011 21:21 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi all,
I started to code an user-configurable menu system, with draggable toolbars.
By now, just the drag/dock system works; there's still much work to do, in detail :
1- Figure out an interface similar to Upp toolbar one, so with a callback to add menu entries which will then be configured by users.
I'm thinking to a callback similar to Upp one, to add built-in commands, plus a way to add user commands that call a fixed callback function passing one or more command string
2- A menu/toolbar editor. It should be able to edit menu, toolbars and submenu items, both built-in ones and user-defined ones, see point 1.
3- Some better graphic and skinning. By now it just works, but it's not so nice looking
4- Load/store mechanics, but those depends strongly on point 1 and 2.
5- Well... any idea is welcome.
As the needed code time isn't so small, I'm in search of help, in particular for point 2 and 3 !
If you want to see it at work, just run TextXMLMenu package.
Ciao
Max
[Updated on: Tue, 18 October 2011 20:09] Report message to a moderator
|
|
|
|
Re: User configurable menu system - XMLMenu - Help requested ! [message #33995 is a reply to message #33994] |
Fri, 07 October 2011 22:12 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi Koldo,
I named XMLMenu because I'd like to have menu configuration loaded from an external xml file, of course.
You could, of course, supply an initial configuration from inside the exe file and allow the user to modify it and store an xml file externally.
The bug you found is a bug, not a feature
I had also in my pc, and seemed solved, but with an hack.
I'll re-test it in windows to see if it's not solved there.
I don't know why, but sometimes popup controls (the ones used when dragging....) don't get or loose mouse capture and so events.
Max
Edit : Right, Koldo, the bug is present in windows
I'll have to work a bit more on it.
Max
[Updated on: Fri, 07 October 2011 22:21] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: User configurable menu system - XMLMenu - Help requested ! [message #34045 is a reply to message #34044] |
Thu, 13 October 2011 17:45 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
koldo wrote on Thu, 13 October 2011 17:00 | Hello Massimo
Quote: | Still missing a nice menu/toolbar editor
| I am intrigued. Is that necessary?. Now AFAIK U++ has not a menu editor.
|
IMHO yes, having a configurable menu system needs a menu/toolbars editor too. Just think to some application like cad, which has tons of commands.... I use cad much, and the first thing I do is to re-configure toolbars and menu with my most-used commands easily available, the less used in some sub-menus and the seldom used completely without menu/toolbar entry.
And, I can assure you, my cad screen is anyways *full* of toolbars
So, if you see in my demo, I've chosen this way :
1) A callback to associate an ID (String) to each available command in my app
2) A callback to setup initial appearance of menus; it associates each command ID with a menu entry
3) The same for toolbars.
Now, the editor should change the associations and be able to move menu/toolbars entries from one side to another, or create new ones and delete some unneeded.
Max
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 04:12:21 CEST 2024
Total time taken to generate the page: 0.02879 seconds
|
|
|