Hi.
--- In [email protected], Sue Chastain <[EMAIL PROTECTED]> 
wrote:
> It doesn't work properly without the wait, but I changed the wait to 1
> instead of 50 and it still works, so we'll see if that makes any
> difference.

You might also try it the other way round instead. The event is tracked 
_before_ the window is maximized, so win.maxxed should be 0 before you 
maximize the window. Consequently it is 1 before you restore it. Also 
you should run that getsystemmetrics-stuff only in that case, otherwise 
it is run on _all_ window events. Maybe something like that:

if (arg(1) == 1 && not win.maxxed(arg(2))) do
  if (win.left(arg(2)) > 1599 && win.getsystemmetrics
(SM_CXVIRTUALSCREEN) > 2800)
    win.size(arg(2), 1200, 1600)
endif





Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to