Page 1 of 1

Alter the way CursorTool is displayed?

Posted: Mon Aug 11, 2008 7:45 pm
by 14048359
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!

Re: Alter the way CursorTool is displayed?

Posted: Tue Aug 12, 2008 7:36 am
by Chris
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.