Alter the way CursorTool is displayed?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Alain Bolduc
Newbie
Newbie
Posts: 30
Joined: Mon Feb 18, 2008 12:00 am

Alter the way CursorTool is displayed?

Post by Alain Bolduc » Mon Aug 11, 2008 7:45 pm

Hi,

Is it possible to modify the way that the CursorTool is displayed? I have a vertical cursor and I would like to display a string on the bottom of the cursor (near bottom axis), and also having the possibility to set the height of the cursor. I thought of creating a custom cursor that derives from CursorTool, but DrawVertical and DrawHorizontal are private methods so I can't override them.

Thanks in advance!

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: Alter the way CursorTool is displayed?

Post by Christopher » Tue Aug 12, 2008 7:36 am

Hello,
Qwerty wrote:Is it possible to modify the way that the CursorTool is displayed? I have a vertical cursor and I would like to display a string on the bottom of the cursor (near bottom axis), and also having the possibility to set the height of the cursor. I thought of creating a custom cursor that derives from CursorTool, but DrawVertical and DrawHorizontal are private methods so I can't override them.
Deriving your own custom cursor class form the cursortool sounds like the best way to go. For methods that are private in the cursortool class, you can simply copy them into your derived class using reflector.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply