wxFloatbar fixes

other odds and ends


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-01-05 04:58:23 +00:00
parent 82dd98a702
commit b7e7242718
13 changed files with 336 additions and 29 deletions

View File

@@ -10,7 +10,7 @@ class TestFloatBar(wxFrame):
win = wxWindow(self, -1)
win.SetBackgroundColour(wxNamedColour("WHITE"))
wxStaticText(win, -1, "Drag the toolbar to float it,\n"
"Toggle the last tool to remove the title.", wxPoint(15,15))
"Toggle the last tool to remove\nthe title.", wxPoint(15,15))
tb = wxFloatBar(self, -1)
self.SetToolBar(tb)
@@ -57,6 +57,7 @@ class TestFloatBar(wxFrame):
def OnToolClick(self, event):
self.log.WriteText("tool %s clicked\n" % event.GetId())
if event.GetId() == 60:
print event.GetExtraLong(), event.Checked(), event.GetInt(), self.tb.GetToolState(60)
if event.GetExtraLong():
self.tb.SetTitle("")
else: