... ACTIVATE WINDOW ::oWnd MAXIMIZED ; Codeblock ::bSetup is evaluate before ACTIVATE WINDOW ::oWnd MAXIMIZED, then, ::oWnd does not yet have the dimensions of the window when it is maximized Then, at moment, please, use this TPreview():bSetUp := { |oPreview, oWnd| oWnd:oMenu:End(), ...