<< 点击显示目录 >> 主页 mappView帮助助手 > mapp View帮助信息 > Widgets > Process > Sequencer > Concept > Dragging and dropping steps |
A new step can be added to a sequence using drag-and-drop or an existing step can be repositioned.
The following points must be taken into account:
Enabling drag-and-drop functionality
Drag-and-drop functionality can be enabled using property enableDragAndDrop on widget "Sequencer". Alternatively, action SetEnableDragAndDrop can be used during runtime.
As soon as a step is placed on another step , widget "SequencerEditArea" triggers event EventRelocateStepItemChanged. This event returns Boolean argument "stepRelocate". This makes it possible to determine whether a step should be moved.
Repositioning existing steps
To find out how the step being moved should be placed relative to the selected step, argument Type=Existing must be used in the following actions:
•InsertAfterSelected
•InsertBeforeSelected
•InsertParalleltoSelected
•InsertOpenEndParallelToSelected
•ReplaceSelected
An existing step can then be repositioned.
Adding a new step
To find out how the new step should be placed relative to the selected step, argument Type=New must be used in the following actions:
•InsertAfterSelected
•InsertBeforeSelected
•InsertParalleltoSelected
•InsertOpenEndParallelToSelected
•ReplaceSelected
A new step can then be positioned.
This means that the actions above must be configured twice: once with argument New to add a new step and once with argument Existing to reposition an existing step.