Hey Antonio, 2012/7/26 Antonio Mancina <[email protected]>: > Hi all, > > I recently switched to wt-3.2.2. > > I've been struggling for a few days with a much complex application of > mine and tried to let it present itself in the way I'm used to see it, > with no success. So I decided to track the problems down and came up > with this very simple example. > > http://pastebin.com/nePPg7cq > > (Paste it into a main.cpp and compile with > > g++ -o main main.cpp -lwt -lwthttp > > ). This example will compile quietly against wt-3.2.1, the version I've > used until last week. > If you launch it and open a browser on it you'll see something like > the following: > > http://img839.imageshack.us/img839/264/wt321app.png > > Then I tried to compile against wt-3.2.2 and things changed a lot. > > http://img210.imageshack.us/img210/3589/wt322app.png > > (I simply got rid of the Wt::AlignTop hack in the setLayout call and > left the other code untouched). > > In order to better understand the concepts behind the > new grid layout management, I'd like to ask someone to show me how > to make the application look exactly like the way it looks with the > old library version, because the only way it worked so far has been > to call some explicit set[Minimum/Maximum]Size on the group boxes > specifying the sizes in pixels (and I never had to). > > How to cope with this very simple case?
So, there was still a problem in the latest git with WGroupBox interference and layout managers (because the legend item still messes up part of the computations). I've fixed this now in my git copy (will push this in a minute!). With that fix, your example almost works as you would expect, except that I had to change some minor things, namely if you do not want a widget to take all the width and height given by the layout, then you need to use alignment flags. With 3.2.1 this was not the case for a widget that was added to a layout that had the alignment flags because that had the effect of disabling active layout management. I've pasted my update here: http://pastebin.com/mDiRdAMt We are planning a patch release for 3.2.2 to fix this and another layout issue. Regards, koen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
