ModuleSetViewMode sets the view mode of the opened module window.
The view mode is initialized to the operation mode whenever the module is newly opened.
void @ModuleSetViewMode(string module_name, int mode);
Parameters
string module_name : The graphic module name
int mode : The view mode ( 0 : Operation mode , 1 : Zoom-in mode, 2: Zoom-out mode, 3: Move mode, 4: Digital input selection mode)
Return Value
None
Remark) Ctrl + mouse wheel up/down will zoom the current module (10.3.25 and later versions)
When the mouse wheel is clicked, the operation mode and move mode are toggled. (10.3.25 and later versions)
Version Information
Supported Version: 10.3.25 or higher
Examples
@ModuleSetViewMode("test.modx", 4);
Description : Set the view mode of the opened module named test.modx to digital input selection mode.
References