Fixed a layout bug in XRCed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,7 +146,7 @@ class ParamColour(PPanel):
|
||||
sizer = wxBoxSizer()
|
||||
self.text = wxTextCtrl(self, self.ID_TEXT_CTRL, size=(65,-1))
|
||||
sizer.Add(self.text, 0, wxRIGHT, 5)
|
||||
self.button = wxPanel(self, self.ID_BUTTON, wxDefaultPosition, wxSize(40, -1))
|
||||
self.button = wxPanel(self, self.ID_BUTTON, wxDefaultPosition, wxSize(20, 20))
|
||||
sizer.Add(self.button, 0, wxGROW)
|
||||
self.SetAutoLayout(true)
|
||||
self.SetSizer(sizer)
|
||||
|
@@ -747,7 +747,7 @@ class XML_Tree(wxTreeCtrl):
|
||||
if xxx.className == 'wxFrame':
|
||||
# Create new frame
|
||||
testWin = wxPreFrame()
|
||||
res.LoadFrame(testWin, frame, xxx.name)
|
||||
res.LoadOnFrame(testWin, frame, xxx.name)
|
||||
# Create status bar
|
||||
testWin.CreateStatusBar()
|
||||
testWin.panel = testWin
|
||||
|
Reference in New Issue
Block a user