[wxPython-users] Auto Scroll to

Tim Morton tim at preservedwords.com
Wed Jun 7 16:25:44 PDT 2006


Thank you very much, Paul.
I was unaware that feature is available. I could not find it in the guide.
I see what you mean about it overshooting a little. I may have to try and 
move the anchor to compensate.

Thanks,
Tim



----- Original Message ----- 
From: "Lanier, Paul" <Paul.Lanier at analog.com>
To: <wxPython-users at lists.wxwidgets.org>
Sent: Wednesday, June 07, 2006 5:29 PM
Subject: RE: [wxPython-users] Auto Scroll to


I use .ScrollToAnchor() after using SetPage() which seems to work.   It
seems to always overshoot a little so I manually scroll it back up 2
lines after calling .ScrollToAnchor()

-Paul

-----Original Message-----
From: Tim Morton [mailto:tim at preservedwords.com]
Sent: Wednesday, June 07, 2006 3:00 PM
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Auto Scroll to

I must use .SetPage(text) to display the html and I can't an anchor to
work with it.

Thanks,
Tim


----- Original Message -----
From: "Josiah Carlson" <jcarlson at uci.edu>
To: "Tim Morton" <tim at preservedwords.com>;
<wxPython-users at lists.wxwidgets.org>
Sent: Wednesday, June 07, 2006 12:03 PM
Subject: Re: [wxPython-users] Auto Scroll to


>
> "Tim Morton" <tim at preservedwords.com> wrote:
>> I use a search method to find and mark a line in a chapter of text
>> and display it in an html window, but when the window opens the
>> marked or flagged text is often not visable and must be manually
>> scrolled to be visable.
>>
>> I need to have the html window page auto scroll until the desired
>> line is visable. I can have the page scroll to an arbitrary line with

>> ".Scroll(0, 10)", but I don't know how to have it scroll
>> automatically to a flagged or marked line.
>
> If you insert some <a name="line_X"></a> tags in there, and you know
> all available lines, you can scroll to the largest previous line
> available by using .LoadPage(file/url + '#line_X').
>
> - Josiah
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail:
> wxPython-users-help at lists.wxwidgets.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org





More information about the wxpython-users mailing list