You can use NAME clause to get regerence to the window object
DEFINE WINDOW _preview AT 0, 0 SIZE 1,1 IN DESKTOP CLOSE GROW SYSTEM FLOAT NAME _oPreview
_oPreview.WindowState = 2
_oPreview.Show()
>
>I'm trying to set up a desktop window using all available screen size starting from just below the app toolbar:
>
>DEFINE WINDOW _preview FROM 0, 0 TO _SCREEN.height, _SCREEN.width IN DESKTOP CLOSE GROW SYSTEM FLOAT
>
>Can anyone tell me how to best calculate the FROM and TO parameters?
>
>Thanks,
>Vidar
--sb--