_Width:=2*Xmax; if (_Width>475) then _hi_onEvent(Width,_Width); _Height:=2*Ymax; if (_Height>460) then _hi_onEvent(Height,_Height);