scrolling wxWindow

Hi,

I am using wxPython to develope an image related
application. Because of the size of the image that I
want to display, I can not use wxScrolledWindow for
scrolling(flickering). So I am implementing the
scrolling behavor myself. I used
wxWindow.SetScrollbar to create the scroll bars.
However, I can not receive any scrolling events from
wxWindow. I know that I can use EVT_COMMAND_SCROLL
function if I know the window ids of the scrolling
bars. But I could not find anyways to get those ids.
Any suggestions. (I tried to create scrolling bars
without using SetScrollbar, but it is very ugly)

Thanks a lot!
Fuming Wang, Dr.

···

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Fuming Wang wrote:

Hi,

I am using wxPython to develope an image related
application. Because of the size of the image that I
want to display, I can not use wxScrolledWindow for
scrolling(flickering). So I am implementing the
scrolling behavor myself. I used
wxWindow.SetScrollbar to create the scroll bars. However, I can not receive any scrolling events from
wxWindow. I know that I can use EVT_COMMAND_SCROLL
function if I know the window ids of the scrolling
bars. But I could not find anyways to get those ids.
Any suggestions. (I tried to create scrolling bars
without using SetScrollbar, but it is very ugly)

Fuming was already answered on the wx-users list, but just to be complete for this archive the answer is to use the EVT_SCROLLWIN* events.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!