Am 23.10.2008, 14:23 Uhr, schrieb Stefanie Lück <[EMAIL PROTECTED]>:
> Hi! > > First, thanks for such a nice package like FloatCanvas! It's really > great! > > Now my question: > > Is there any code for adding a scrollbar to my window? I can't show what > I want without a scrollbar but I also don't have enough time to > implement it myself. If anyone could support me with some code, this > would be great. I would like to stick to FloatCanvas because it's nice > (with wxDC was a mess...). Unfortunately I can't combine FloatCanvas > with a wx.ScrolledWindow, like I did it for wxDC. > > Thanks for any advice! I don't have any concrete code at hand, but I guess you can create a wx.ScrollBar and add this to the right side of your canvas via a sizer. Then you bind to wx.EVT_SCROLL and when you receive such an event you call canvas.MoveImage based on the position of the scroll bar slider. -Matthias _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
