• 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...HRuler - Text line upHRuler - Text line up
Previous
 
Next
New Post
5/24/2012 5:43 PM
 
JenE
No Ranking

Joined: 5/24/2012
Posts: 1
HRuler - Text line up 

I'm using this control to display a 132 character line of text.  The actual characters of the text fall between the lines of the ruler.  I have a request to make the characters fall lined up with the lines of the ruler.  So that character 10 falls underneath the line for 10 and not between the 10 and 11 lines?  Is that posisble?  Thanks!

 
New Post
5/25/2012 8:28 AM
 
MartinG
7th Level Poster

www.digitalrune.com
Joined: 10/15/2006
Posts: 448
Re: HRuler - Text line up 

Sure, it is possible. You only need to change the OnPaint()-method of the horizontal ruler.

You can find the code for the horizontal ruler in this file: DigitalRune.Windows.TextEditor\GUI\HRuler.cs

 
 Page 1 of 1
Previous
 
Next
HomeHomeDigitalRune Sof...DigitalRune Sof...Text Editor Con...Text Editor Con...HRuler - Text line upHRuler - Text line up


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