Hi everyone.
I want to know scrolled position.
I use GetScrollPos(wx.VERTICAL) with ShowScrollbars(wx.SHOW_SB_DEFAULT, wx.SHOW_SB_NEVER), it return only 0 or 1. Their value incorrect position.
What function can be used insted of GetScrollPos()?
Hi everyone.
I want to know scrolled position.
I use GetScrollPos(wx.VERTICAL) with ShowScrollbars(wx.SHOW_SB_DEFAULT, wx.SHOW_SB_NEVER), it return only 0 or 1. Their value incorrect position.
What function can be used insted of GetScrollPos()?
hudif wrote:
I want to know scrolled position.
I use GetScrollPos(wx.VERTICAL) with
ShowScrollbars(wx.SHOW_SB_DEFAULT, wx.SHOW_SB_NEVER), it return only 0
or 1. Their value incorrect position.
You just told ShowScrollbars to turn off vertical scrollbar. Was that a
typo?
There's a bit of a philosophy collision here. GetScrollPos is a native
UI API that returns information about the native UI scroll bar for the
current window. ShowScrollbars is part of wx.ScrolledWindow, which is
doing magic to present a scrolled view of what would otherwise be a very
large window. I'm not sure GetScrollPos will return anything meaningful
here. You may have to use GetViewStart to find out what portion of the
large window is currently visible.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.