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:
Robin Dunn
2002-08-24 02:30:48 +00:00
parent f725aedbae
commit 4efcf9a185
2 changed files with 6 additions and 6 deletions

View File

@@ -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)

View File

@@ -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