User drawing on TsgDrawingNavigator

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
mberard
Posts: 1
Joined: 11 Dec 2010, 05:09

User drawing on TsgDrawingNavigator

Post by mberard » 11 Dec 2010, 05:17

I would like to draw a line on a TsgDrawingNavigator when then user clicks and drags the mouse. This is to show the limits of the mouse drag. The line will disappear when the mouse button is released. I do not want to put the line into the CAD drawing. I tried drawing into a TPaintBox that was placed on top of the TsgDrawingNavigator. However, the line did not appear. Does anybody know how to display a line without changing the underlying CAD drawing?

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: User drawing on TsgDrawingNavigator

Post by support » 15 Dec 2010, 18:50

Hello.
You can draw on Canvas if adding to CADImage undesirable. For example, try use TsgDrawingNavigator.Canvas.Polyline method or TsgDrawingNavigator.Canvas.MoveTo/TsgDrawingNavigator.Canvas.LineTo construction.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply