wxFormBuilder Drag & Drop widgets not possible?

Milan Babuskov milanb at panonnet.net
Mon Jan 28 07:24:56 PST 2008


Lars Uffmann wrote:
> I found the two tutorials that I was able to locate... lacking. I 
> haven't even managed to place 2 controls next to each other yet - the 
> best I've managed to come up with is different sizers below each other. 

Create a horizontal box sizer and just add 2 controls to it. (Box sizer, 
change to horizontal, click on controls in toolbar to add)

> At least there should be a way to split a panel/sizer horizontally or 
> vertically between two child sizers, by a percentage, for example: This 
> area gets divided 30:70 ... instead: nada

For first control set the factor to 30, for the second one to 70. I 
believe it is called 'option' or something like that in wxFB. Both 
controls have to set to expand.

Please note that wxFB is great once you know all about sizers. It is not 
a good tool to learn about them.

> Easy example under Windows: My Computer -> Properties - General
> I don't see how that trivial window could be designed with wxFB. Do you 
> happen to know this is doable? Or have a link to a good tutorial?

Very simple. You need wxNotebook or some of related *book classes.

Take a look at wxWidgets website, there are examples of many 
applications that have various dialog layouts. It is doable.


Regarding your original problem, IIRC wxDev or wxDevC++ does support 
absolute positioning and drag and drop. I believe this is the closest to 
Delphi/C++Builder you can get:

http://wxdsgn.sourceforge.net/


Also, search for VisualWX... IIRC it has some absolute positioning 
support as well.

-- 
Milan Babuskov
http://www.guacosoft.com




More information about the wx-users mailing list