Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
[Solved] wxSmith / wxWidgets bug?
(1/1)
joubertdj:
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]
byo:
Did you try calling Layout() function after clicking this new button ?
Regards
BYO
joubertdj:
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
byo:
--- Quote from: joubertdj on April 10, 2008, 02:58:40 pm ---I Layout the BoxSizer after I made it "Is Member" and it worked ... Whao ...
--- End quote ---
Nice to hear :)
Regards
BYO
joubertdj:
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,
Navigation
[0] Message Index
Go to full version