moving entity by keyboard
Moderators: SDS, support, admin
moving entity by keyboard
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().
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().
Re: moving entity by keyboard
and
why point entity is not moved with arrow keys?
i m also not getting event trigger for arrow keys (key down event). why?
why point entity is not moved with arrow keys?
i m also not getting event trigger for arrow keys (key down event). why?
Re: moving entity by keyboard
Please do reply of this post!
Re: moving entity by keyboard
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.
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
Chat support on Skype: cadsofttools.support