Well it took a lot of messing around with Widgets etc but in the end
Dabo does it with ease.
Hopefully the attatched images tell the story. but in a nutshell you can
append(prepend or insert) a dabo dToolbar to any dSizer and it will
appear on the form
To do this in ClassDesigner I access the Contollling Sizer of an item on
the form then appended a toolbar to it
sz = self.thegrid.ControllingSizer
sz.append(toolbar.mToolbar(self,None))
# sz.prepend(toolbar.mToolbar(self,None))
print sz
print self.thegrid.ControllingSizerItem
print sz.listMembers()
sz = self.thetext.ControllingSizer
sz.append(toolbar.mToolbar(self,None))
# sz.prepend(toolbar.mToolbar(self,None))
Note mToolbar is a sub Class of dToolbar
thegrid is in a sizer of its own whilst thetext is a textbox on the main
sizer for the form
This introduces toolbars at the end of sizers for both of the controls
ie one immediately below the grid and one at the bottom od the form
prepend worked on the text box but not on the grid although a blank slot
was generated
Haven't tried insert
Hope this is useful
Mike Ayers
--- StripMime Report -- processed MIME parts ---
multipart/mixed
text/plain (text body -- kept)
image/jpeg
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/1263008011.18242.14.ca...@linux