Le 28 mars 07 à 01:34 Matin, Aliacta a écrit: >> IsMaximized=False >> in the restore event and in the minimize event > > (and in the Resize event - Marc)
Remember that when you zoom a window, you also get a Resize event (just after the Maximized event). You can't directly set IsMaximized=false in the Resize event because it would break the functionality. But you're right: if the user zooms a window and then resize it, you have to know that and set IsMaximized to false. You may make it so: IsMaximized as integer In the Maximize event: IsMaximized=1 In the Restore event (but not in the Minimize event): IsMaximized=0 in the Resize event: if IsMaximized=1 then 'Zooming right now IsMaximized=2 else 'Either zoomed before, or not at all zoomed (or already resized before) IsMaximized=0 end if I think it should work. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
