Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » LineEdit scroll to last line
LineEdit scroll to last line [message #9846] Sat, 02 June 2007 16:49 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
How can i realize an automatic scroll-down to the last line which was inserted into a LineEdit-widget?

Michael
Re: LineEdit scroll to last line [message #9854 is a reply to message #9846] Sun, 03 June 2007 21:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11700
Registered: November 2005
Ultimate Member
michael wrote on Sat, 02 June 2007 10:49

How can i realize an automatic scroll-down to the last line which was inserted into a LineEdit-widget?

Michael


The simplest method is to set cursor to it.
Re: LineEdit scroll to last line [message #9855 is a reply to message #9846] Sun, 03 June 2007 22:23 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Thanks, this works:

LineEdit editor;

editor.SetCursor(editor.GetLenght());

Michael
Re: LineEdit scroll to last line [message #9856 is a reply to message #9855] Sun, 03 June 2007 22:27 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1353
Registered: November 2005
Location: Poland
Senior Contributor

I think it's worth adding GoEnd()/GoBegin() methods to TextEdit interface. It's quite common operation.
Re: LineEdit scroll to last line [message #9858 is a reply to message #9856] Mon, 04 June 2007 10:41 Go to previous message
mirek is currently offline  mirek
Messages: 11700
Registered: November 2005
Ultimate Member
unodgs wrote on Sun, 03 June 2007 16:27

I think it's worth adding GoEnd()/GoBegin() methods to TextEdit interface. It's quite common operation.


Then do it Smile (And add Topic++ entries).

Mirek
Previous Topic: EditInt and context menu
Next Topic: Set color in lineedit widget
Goto Forum:
  


Current Time: Sat Feb 16 17:22:41 CET 2019

Total time taken to generate the page: 0.00602 seconds