wxTextCtrl::GetScrollPos always returns 0

Lloyd lloyd at cdactvm.in
Thu Apr 3 06:01:04 PDT 2008


On Thu, 2008-04-03 at 14:45 +0200, Vadim Zeitlin wrote:
> On Thu, 03 Apr 2008 12:43:20 +0530 Lloyd <lloyd at cdactvm.in> wrote:
> 
> L> GetScrollPos(wxVERTICAL); for a multi lined wxTextCtrl always returns 0.
> L> Is it the defined behaviour?
> 
>  Yes, GetScrollPos() and other scrolling-related functions only work for
> scrollbars managed by wx and not for the native controls scrollbars. Of
> course, these functions should never have been part of classes such as
> wxTextCtrl at all but, well, too late to change this any more.
> 
>  Regards,
> VZ
> 

I asked this to know the visible rectangle (coordinates) of the virtual
client area of the text control. Is there any method to find out this in
a multi line text control?

Thanks,
  Lloyd



______________________________________
Scanned and protected by Email scanner


More information about the wx-users mailing list