moving entity by keyboard

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

moving entity by keyboard

Post by Khyati » 18 Apr 2011, 12:09

Hello,

i want to move entity with arrow keys of keyboard.
i took reference from editorform demo.

my entity has moved its position as per the arrow key, but it is not refreshing with arrow keys, as in demo.
it gets moved when either i change my window and re-opening my program window or if do mouse click on cadimport picture box.

what is required to refresh the picturebox?
i m using cadeditorcontrol1.invalidate().

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: moving entity by keyboard

Post by Khyati » 18 Apr 2011, 12:24

and

why point entity is not moved with arrow keys?
i m also not getting event trigger for arrow keys (key down event). why?

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: moving entity by keyboard

Post by Khyati » 20 Apr 2011, 12:22

Please do reply of this post!

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

Re: moving entity by keyboard

Post by support » 20 Apr 2011, 18:13

Hello Khyati.
CADEditorControl includes moving selected entities by keyboard functionality. Any additional coding not required. Why need snippet from editor demo?
The fact the Point entity not moved by arrow keys looks like bug. We will consider this problem. However moving entities by arrow keys isn't standard feature in CAD software. For example AutoCAD doesn't include such functionality. Possibly we will remove it in the future library versions.
Unfortunately the CADEditorControl inherited events not triggered. Library version 7.2.7 include CADEditorControl.PictureBox property that represents inner CADPictureBox object. This property allows trigger some mouse events, like MouseDown, MouseMove, MouseUp. Key events currently can't be triggered. We will consider this problem.

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

Post Reply