• Home
  • Products
    • Game Engine
      • Base
      • Mathematics
      • Geometry
      • Physics
      • Particles
      • Animation
      • Graphics
      • Game
      • Game UI
    • Windows Forms
      • Docking Windows
      • Text Editor Control
  • Downloads
  • Buy
    • Overview
    • Professional
    • Indie
    • Non-Commercial
  • Support
    • Overview
    • Blog
    • Forum
    • License FAQ
    • Documentation
  • About
    • About Us
      • Services
    • Contact Us
    • Press
    • Legal Terms
      • Imprint (English)
      • Imprint (German)
Select the search type
 
  • Site
  • Web
Search
DigitalRune.com
Login |Register
NEWS News RSS Feed BLOG Blog RSS Feed FORUM News RSS Feed DOCUMENTATION DigitalRune Software on YouTube DigitalRune Software on Twitter
You are here: SupportForum

If you want to contribute to the forum discussions, please Register or Login.

SearchHome
  • 1
  • 2
  • 3
  • 4
  • 5
HomeHomeDigitalRune Sof...DigitalRune Sof...Text Editor Con...Text Editor Con...Go to Line and Find Text FunctionsGo to Line and Find Text Functions
Previous
 
Next
New Post
8/6/2010 3:02 PM
 
Francois
No Ranking

Joined: 8/6/2010
Posts: 8
Go to Line and Find Text Functions 
Hi,

I want to add a Goto Line no function and a Find text function. Find text in the IDocument document or TextArea is quote easy. Finding a line number is also quite easy. My question however is how to a make the text or line receive focus and that the TextEditor automatically scroll to that location?

Thanks
 
New Post
8/9/2010 1:16 PM
 
Lawliet
No Ranking

Joined: 8/9/2010
Posts: 5
Re: Go to Line and Find Text Functions 
Hi, this is a good idea
I need something like I've also thought the search to solve by Maker

LG.L
 
New Post
8/9/2010 1:53 PM
Accepted Answer 
HelmutG
6th Level Poster

www.digitalrune.com
Joined: 10/15/2006
Posts: 567
Re: Go to Line and Find Text Functions 
Hi all,

in this thread: http://www.digitalrune.com/Support/Fo...
you can find a code snippet that searches for text, selects the text and sets the caret to the end of the selected text.

When the caret position is changed, the text area automatically scrolls to the new caret position.

The TextArea class also has methods like TextArea.ScrollTo(line) and TextArea.ScrollToCaret().

I hope this answers your questions.

Helmut
 
New Post
8/10/2010 1:37 AM
 
Francois
No Ranking

Joined: 8/6/2010
Posts: 8
Re: Go to Line and Find Text Functions 
Thanks, this is exactly what I was looking for.
 
 Page 1 of 1
Previous
 
Next
HomeHomeDigitalRune Sof...DigitalRune Sof...Text Editor Con...Text Editor Con...Go to Line and Find Text FunctionsGo to Line and Find Text Functions


DigitalRune is a trademark of Garstenauer Information Technology OG.

Garstenauer Information Technology OG
Weingartenstrasse 35, 4452 Ternberg
Austria (EUROPE)
office@digitalrune.com

Home Products Downloads Buy Support About Us
Game Engine Particles Windows Forms Professional Blog Services
Base Animation Docking Windows Indie Forum Contact Us
Mathematics Graphics Text Editor Control Non-Commercial License FAQ Press (News)
Geometry Game Documentation Legal Terms
Physics Game UI Imprint
Impressum
Copyright © 2006-2012 Garstenauer Information Technology OG Terms Of UsePrivacy Statement