Thanks for your efforts here - it inspired me to try a few things. I don't
know if it's useful but...
I tried (a) (I do not have the competence to try(b)) and I have also tried
taking out lines 1451-1453
where SetSize is used again. Earlier on I thought this made a difference
but I cannot reproduce it now. _http://www.wxwidgets.org/_
virtual void SetSize(int x, int y, int width, int height, int sizeFlags =
virtual void SetSize(const wxRect& rect)
Sets the size and position of the window in pixels.
virtual void SetSize(int width, int height)
virtual void SetSize(const wxSize& size)
Sets the size of the window in pixels.
which (to me, who does not know much about OOP) that you need to set
to something. Like I say, I tried it earlier and '255' seemed to have a
better effect than '0'. I don't know what this means but maybe it helps???
In a message dated 05/09/2005 22:00:24 GMT Standard Time, crookj@...
Thanks for the screenshot trace and comments.
I've now got some kind of a handle on the problem.
Part of it is that with 2.6.1, if you do more than one SetSize() on a
window in quick succession they may not all take effect. I suspect it's
a side effect of an improvement they have made to reduce flicker/repaints.
I have been able to get usable toolbars by:
(a) comment out the section in FlowLayout marked
(b) (optional) add a wxRect LayoutRect to class ToolBar, and update it
rather than calling SetSize() on the toolbar. Then after returning from
FlowLayout into LayoutToolbars, iterate through the toolbar array doing
With just (a) the horizontal size still jumps around a bit, but its
possible to use.
With (a) and (b) sizes are stable, but some background is not painted
and is the darker grey.
When I have fix for that too I will check the changes in to CVS.
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Audacity-devel mailing list