[wxPython-users] IEHtmlWindow GetScrollPos

Robin Dunn robin at alldunn.com
Thu Oct 11 12:01:11 PDT 2007


Ken Seehart wrote:
> Robin Dunn wrote:
>> Ken Seehart wrote:
>>> What's the deal with the scroll bar for IEHtmlWindow?
>>>
>>> GetScrollPos(wx.VERTICAL) always returns 0.
>>> GetScrollRange(wx.VERTICAL) always returns 1.
>>> (same for wx.HORIZONTAL)
>>
>> The scrollbars in the IEHtmlWindow don't belong to wxWidgets so it has 
>> no access to them.  You are just seeing the default values for those 
>> methods if wx scrollbars were active for the window.
>>
>>
> Is there any workaround for this? 

Not that I know of, but perhaps you can get a low enough level of access 
  using the win32com and win32api modules.  Or perhaps ctypes.  In other 
words if you can find the window handle of the IE window, or even the 
handles of the scrollbars, then you can call the raw win32 API functions 
using those handles and get what you need.


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





More information about the wxpython-users mailing list