ModuleSetScrollPos

 

ModuleSetScrollPos can make scrolling through the opened module window.

 

void @ModuleSetScrollPos(string modulename, int direction);

 

Parameters

stirng modulename : The module name

int direction  :  0 -> Left ,  1 -> Top,  2 -> Right,  3 -> Bottom

 

Dscription : If the direction is set to 0, the opened module window moves to the left, and if it is st to 2, the window moves to the right.

 

Examples

Description of the screen configuration

 

1)     Left Button

 

@ModuleSetScrollPos("test.modx", 0);

When configured as above, the screen moves to the left of the opend module every time the button is clicked.

 

2)         Top Button

 

@ModuleSetScrollPos("test.modx", 1);

When configured as above, the screen moves to the top of the opend module every time the button is clicked.

 

3)         Right Button

 

@ModuleSetScrollPos("test.modx", 2);

When configured as above, the screen moves to the right of the opend module every time the button is clicked.

 

4)         Bottom Button

 

@ModuleSetScrollPos("test.modx", 3);

When configured as above, the screen moves to the bottom of the opend module every time the button is clicked.

 

Related Helps

@MdiSetScrollPos()

@MdiSetViewRatio()

@MdiGetViewMode()

@MdiSetViewMode()

@ModuleGetViewMode()

@ModuleSetViewMode()

@ModuleGetViewModeActive()

@ModuleSetViewModeActive()

@ModuleSetViewRatio()

@ModuleSetViewRatioActive()

@ModuleSetScrollPos()

@ModuleSetScrollPosActive()

@ModuleSetWindowState()

@MModuleSetWindowStateActive()