Try
DEFINE WINDOW _preview AT 0, 0 SIZE 1,1 IN SCREEN CLOSE GROW SYSTEM FLOAT NAME _oPreview
_oPreview.WindowState = 2
_oPreview.Show()
>
>Thanks for the tip, but remember that desktop windows take over the entire screen when maximized, covering both the application menu and toolbar at the top and the Windows taskbar at the bottom. I want to size the window so that these elements are visible.
>
>This code works at my current screen resolution:
>
>
DEFINE WINDOW _preview AT 0, 0 SIZE 1,1 IN DESKTOP CLOSE GROW SYSTEM FLOAT NAME _oPreview
>_oPreview.WindowState = 2
>_oPreview.Show()
>_oPreview.left = 0
>_oPreview.top = 70
>_oPreview.height = _oPreview.height - 100
>
>The challenge is to make this code generic for all screen resolutions. Does anyone have some code to share?
>
--sb--