Code::Blocks Forums
		Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: joubertdj on April 06, 2008, 12:33:15 am
		
			
			- 
				byo / any other wxSmith users,
 
 I don't know if this is a bug that I found or if there is something wrong with the way I am implementing a desired feature.
 
 Let me explain:
 
 I am using a wxNotebook, each one has a wxPanel (byo trick for making it look nice). I want the panel to be disabled at startup, or hidden, doesn't matter. When the user clicks a new button he/she should be moved to the next wxNotebookTab. Okay so everything is working fine on my computer (Vista  :x) so far! Then I started to see an anomaly... The right most wxStaticBoxSizer is cut-off!!!
 
 When I maximize (Restore Up) the frame and then window(restore down) it, it looks normal.
 
 Attached is my project, and one picture indicating the error, and another after I have resized the window!
 
 Can someone explain my error or is this a wxSmith error or a wxWidgets one?
 
 Best regards,
 
 joubertdj
 
 [attachment deleted by admin]
- 
				Did you try calling Layout() function after clicking this new button ?
 
 Regards
 BYO
- 
				Yup,
 
 Several times. I called Layout for: The frame, the Notebook, the Panel,  nothing ... still the same cut on the right hand side...
 
 ... OOOOOOOOOHHHHHHHHHHHHHH ...
 
 ... MMMMMMMHHHHHHHHHHHHHHH  ...
 
 I Layout the BoxSizer after I made it "Is Member" and it worked ... Whao ...
 
 Thanx Byo
 
 
- 
				I Layout the BoxSizer after I made it "Is Member" and it worked ... Whao ...
 
 
 Nice to hear :)
 
 Regards
 BYO
- 
				I don't know wxWidgets that well yet, one question...
 
 Why do you need to make the wxBoxSizers a "Is Member" before you can actually Layout it? And possibly ... why doesn't it do it automatically?
 
 Best regards,