wxToolbar: bizzare strange behavior in sizers

FooSoft yatskov at gmail.com
Thu May 8 19:37:41 PDT 2008


Hey guys, I'm using wxFormBuilder to try to create a very simple XRC layout
(wxFrame containing a vertical wxBoxSizer, which contains one toolbar (with
one toolbar button) and a textbox). 

When I begin to resize the created frame (either in the wxFormBuilder
preview, or in my application), the toolbar glitches out, and jumps around
vertically in the frame (you can see how it "jumped down" from the top of
the frame in this screenshot:
http://img206.imageshack.us/img206/9632/state1gw4.png

Has anyone seen this behavior? Any ideas on how I can use a toolbar through
XRC w/o this happening? I've tinkered with adding new sizers, and the like
but no luck. Seems like as long as a toolbar is grouped with another control
vertically (and has at least one toolbar button inside of it), it will
glitch out. 

Any ideas (I'm running latest version of wxWidgets on Windows Vista)? :(

By the way, the XRC for a really simple test case is as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">
	
		<style>wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL</style>
		<size>500,300</size>
		<title></title>
		
			<orient>wxVERTICAL</orient>
			
				<option>0</option>
				<flag>wxEXPAND</flag>
				<border>5</border>
				
					<style>wxTB_HORIZONTAL</style>
					<pos>0,0</pos>
					<bitmapsize></bitmapsize>
					<margins></margins>
					<packing>1</packing>
					<separation>5</separation>
					
						<label>tool</label>
						<tooltip></tooltip>
						<longhelp></longhelp>
						<bitmap />
					
				
			
			
				<option>1</option>
				<flag>wxALL|wxEXPAND</flag>
				<border>5</border>
				
					<value></value>
					<maxlength>0</maxlength>
				
			
		
	
</resource>

-- 
View this message in context: http://www.nabble.com/wxToolbar%3A-bizzare-strange-behavior-in-sizers-tp17140430p17140430.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.



More information about the wx-users mailing list