Re[2]: BUG in sample/statbar sample or wxStatusBar BUG + more ( wxMSW 2.6.2 ) - SOLVED ?

Re[2]: BUG in sample/statbar sample or wxStatusBar BUG + more ( wxMSW 2.6.2 ) - SOLVED ?

Post by vadi » Mon, 20 Mar 2006 22:34:43



INS> In my opinion this feature is not really useful and generated the bugs
INS> reported by me in one of previous mails.
INS> My repair was ignoring the automatic resize and only accept the layout.
INS> The function looks like this:
INS>
INS> void wxTopLevelWindowBase::DoLayout()
INS> {
INS> // if we're using constraints or sizers - do use them
INS>
INS> if ( GetAutoLayout() )
INS> {
INS> Layout();
INS> }
INS> else
INS> {
INS> return;
INS> ..........
INS> }
INS> }
INS>
INS>
INS> Everything works now fine. I don't know if this is a good way to repair
INS> this bug

Let's be serious for a moment: the proposed "fix" above will break *all*
existing code creating a panel inside of a frame. Do you really think this
can be good?

INS> I'm waiting for you suggestions and opinons ( in detail if possible ).

I didn't have time to look at your bug report in detail yet but it's clear
that the real problem is that the status bas is not recognized as one of
the bars for some reason. The logic of DoLayout() is 100% ok and can't and
won't be changed.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.yqcomputer.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM