EControl Syntax Editor SDK
Using mouse

Mouse actions:

Action 
Meaning 
Right button click 
Show popup menu 
Left button click 
Move caret to the mouse position and start normal selection 
Alt + Left click 
Move caret to the mouse position and start column selection 
Alt + Ctrl + Left click 
Move caret to the mouse position and start line selection 

If during start selection Shift key have been pressed, block from current caret position to mouse click position is selected. 

 

Left button click over selection block start text dragging. Dragged text will be moved to new position. To copy selection using drag&drop press Control key during dragging. 

There are two mode of text drag&drop operations: VCL and OLE drag&drop. In demo editor implemented OLE dragging which allows dragging text from editor to any application, for example, MS Word. Syntax editor always accepts OLE objects dropped on it independently on used drag mode. 

 

You can perform drag&drop on block staples. Press Control key and drag block staple. This operation will indent/unindent lines that are coupled by the block staple. 

 

You can drag right margin to new position by left mouse with pressed Control key.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!