Re: Developer/2000. Maximize window.

From: Alex Heney <a.j.heney_at_btNOinterSPAMnet.com>
Date: 1997/08/21
Message-ID: <33fc3f5e.23701070_at_news.axion.bt.co.uk>#1/1


On Wed, 20 Aug 1997 14:51:40 +0200, Pedro <pgonzale_at_arrakis.es> wrote:

>Hi!,
>
>Im using Set_Window_Property for maximize a window but this command dont
>go well.Why?
>

There is a minor? problem with the command, in that Windows 'restore' occurs AFTER a WHEN-WINDOW-ACTIVATED trigger. This is likley to cause problems if you are trying to maximize in a 'WHEN-WINDOW-ACTIVATED' trigger, and the window is activated by double-clicking on a minimized icon, because your trigger will maximize the window, then the Windows 'restore' will resize the window to the last (non-maximized) size it had.

We get around this by use of the following code:

    IF Get_Window_Property(FORMS_MDI_WINDOW,WINDOW_STATE) <> 'MINIMIZE' THEN
      Set_Window_Property(FORMS_MDI_WINDOW,window_state,maximize);     END IF;

--
The above posting represents the personal opinions of the author and
is not to be taken as official (or unofficial) policy or opinions of 
his employer.

Remove XSPAM from mail_id if replying via email.
Alex Heney, Living in the Global Village.
Received on Thu Aug 21 1997 - 00:00:00 CEST

Original text of this message