When several tabs are inserted in the main mask dw_1, it should no longer be "scrolled" with the mouse wheel, otherwise the image content will be destroyed.
For this reason you can use the global function "scrollvertical", which is called in the case of vertical scrolling.
With this syntax, vertical scrolling 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