Hello,
I have a problem with wxSplitterWindow and wxStaticBox by getting wrong
control positioning. My code looks in this way:
[...]
splitter = wxSplitterWindow(self, -1)
sb = wxStaticBox(splitter, -1, "List")
sbSizer = wxStaticBoxSizer(sb, wxVERTICAL)
list = wxListBox(splitter, id, wxDefaultSize, wxDefaultPosition,
[], wxLB_SINGLE)
sbSiser.AddWindow(list, 1, wxALL, 3)
html = HtmlWindow(splitter, -1)
splitter.SplitVertically(list, html)
[...]
The static box with the title is in its place, but the list itself is
floating somewhere at the left top and don't fill the left part of the
splitter.
I have no problems with wxStaticBox when adding it somewhere else, not in the
splitter. I have read the http://wiki.wxwindows.org/wiki.pl?WxSizer but I
still have this problem using wxSplitterWindow. Could anybody explain and
give an example how to use them?
Martynas
···
--
There is more vision than meets the eye.
http://mjoc.sig.lt