Package wx :: Class ScrollWinEvent
[frames | no frames]

Type ScrollWinEvent

object --+        
         |        
    Object --+    
             |    
         Event --+
                 |
                ScrollWinEvent


A wx.ScrollWinEvent holds information about scrolling and is sent from scrolling windows.

Events

EVT_SCROLLWIN Used to bind all scrolled window scroll events
EVT_SCROLLWIN_TOP scroll-to-top events (minimum position)
EVT_SCROLLWIN_BOTTOM scroll-to-bottom events (maximum position)
EVT_SCROLLWIN_LINEUP line up events
EVT_SCROLLWIN_LINEDOWN line down events
EVT_SCROLLWIN_PAGEUP page up events
EVT_SCROLLWIN_PAGEDOWN page down events
EVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent events sent as the user drags the 'thumb')
EVT_SCROLLWIN_THUMBRELEASE thumb release events.
EVT_SCROLLWIN_ENDSCROLL End of scrolling

Method Summary
ScrollWinEvent __init__(self, commandType, pos, orient)
A wx.ScrollWinEvent holds information about scrolling and is sent from scrolling windows.
  __repr__(self)
int GetOrientation(self)
Returns wx.HORIZONTAL or wx.VERTICAL, depending on the orientation of the scrollbar.
int GetPosition(self)
Returns the position of the scrollbar for the thumb track and release events.
  SetOrientation(self, orient)
  SetPosition(self, pos)

Method Details

__init__(self, commandType=wxEVT_NULL, pos=0, orient=0)
(Constructor)

A wx.ScrollWinEvent holds information about scrolling and is sent from scrolling windows.

Events

EVT_SCROLLWIN Used to bind all scrolled window scroll events
EVT_SCROLLWIN_TOP scroll-to-top events (minimum position)
EVT_SCROLLWIN_BOTTOM scroll-to-bottom events (maximum position)
EVT_SCROLLWIN_LINEUP line up events
EVT_SCROLLWIN_LINEDOWN line down events
EVT_SCROLLWIN_PAGEUP page up events
EVT_SCROLLWIN_PAGEDOWN page down events
EVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent events sent as the user drags the 'thumb')
EVT_SCROLLWIN_THUMBRELEASE thumb release events.
EVT_SCROLLWIN_ENDSCROLL End of scrolling
Parameters:
commandType
           (type=wxEventType)
pos
           (type=int)
orient
           (type=int)
Returns:
ScrollWinEvent
Overrides:
wx.Event.__init__

GetOrientation(self)

Returns wx.HORIZONTAL or wx.VERTICAL, depending on the orientation of the scrollbar.
Returns:
int

GetPosition(self)

Returns the position of the scrollbar for the thumb track and release events. Note that this field can't be used for the other events, you need to query the window itself for the current position in that case.
Returns:
int

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:04 2005 http://epydoc.sf.net