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!
Alter the way CursorTool is displayed?
-
- Newbie
- Posts: 30
- Joined: Mon Feb 18, 2008 12:00 am
-
- 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?
Hello,
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.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.
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/
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/