Home » U++ TheIDE » U++ TheIDE: Layout (Forms) Designer » A (maybe) dummy idea about widgets and control manager
Re: A (maybe) dummy idea about widgets and control manager [message #11497 is a reply to message #11491] |
Sat, 15 September 2007 22:59 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
I started playing with the idea above; a little change in CtrlCore.h (ignoremouse = 1 if in designer), few code lines and widgets are created, moved and resized on my code main window.
So far, this works statically, so you must know in advance (ide compile time) the classes of widgets.
Next step would be creation by class name, and property set/get/list, which requires RTTI and a bit more coding but is manageable too. That would require some changes to existing controls, too, in order to 'export' the properties.
That would allow to instantiate controls by name (aka string), so they may be unknown at compile time.
A step further, controls linked dynamically; that's very platform / compiler dependent. On Linux, a good start is here :
http://www.linuxjournal.com/article/3687
On windoze, there are many more advanced DLL functions to deal with dynamic module loading/executing.
All that would allow to deploy controls (I'd call them components) as an include file + a precompiled shared library, that could be imported inside the ide with an 'import control' command. All without recompiling anything,
Again, if you think it's worth the effort, I can try to go further.
Ciao
Max
[Updated on: Sat, 15 September 2007 23:01] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 21 05:08:00 CEST 2024
Total time taken to generate the page: 0.02080 seconds
|