problem vertical scroll

beasscript-logo-small

When in the main mask dw_1 several TAB's are inserted, it should no longer be "scrolled" with the mouse wheel, otherwise the image contents will be destroyed.

 

Therefore exists the global function scrollvertical, which is called in the case of a vertical scroll.

With this syntax, the vertical scroll can be prevented.

 

global function scrollvertical

// only cancel the vertical scroll, if dw_1 have the current focus

if <sys_currentdwfocus> = dw_1 then

  dw=datawindow.verticalscrollposition=0

end if

// set focus to dw_2

dw_2.setfocus

end global