ModuleGetViewMode returns the view mode of the opened module window.
int @ModuleGetViewMode(string module_name);
Paramters
string module_name : The graphic module name
Return Value
0 : Operation mode (default)
1 : Zoom-in mode
2 : Zoom-out mode
3 : Move mode
4 : Digital input selection mode
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
Example
i = @ModuleGetViewMode("test.modx");
Description : Return the view mode of the test.modx
References