I'm looking over the wxScrolledWindow code in the wxPython demo and can't
find a couple of function, where they come from, both in OnLeftButtonEvent().
self.ViewStart() -- my wxScrolledWindow documentation has GetViewStart().
Is it the same?
apply(...) -- can't find this in docs anywhere. Where does it come from?
In the future I'm planning on adding zooming to my application, in addition
to scrolling. Is it better to use wxScrollbar and manage the coordinates
manually or should I use wxScrolledWindow?
···
-------------------------------------------------
Robert B. Klimek
NASA Glenn Research Center robert.klimek@grc.nasa.gov
(216) 433-2837
--------------------------------------------------
In the future I'm planning on adding zooming to my application, in addition
to scrolling. Is it better to use wxScrollbar and manage the coordinates
manually or should I use wxScrolledWindow?
Robin answered your other questions, but I'll address this one.
I have used wxScrolledWindow to create a zoomable scrolling window for
an app I'm working on. It seems to work pretty well, with the main
problem I'm having is that there can be a lot of extra refreshes in some
cases. I've kludged my way around most of them, so it's OK. The cause is
apparently a long-standing and difficult bug in wxGTK. I don't think
it's problem on Windows.
Anyway it works. I'd be glad to share code with you, and if you decide
that you don't like it, and would rather build your own without
wxScrolledWindow, maybe I'll want to use your code.
-------------------------------------------------
Robert B. Klimek
NASA Glenn Research Center
robert.klimek@grc.nasa.gov
(216) 433-2837
--------------------------------------------------