PDA

View Full Version : Is there any way I can minimize the Installer window?



rsundaar
03-19-2003, 01:47 PM
Is there any way I can minimize the Installer window?

We have a master installer that invokes other installers (using Exec Action). We would like the Master Installer window to be minimized after a certain point in the installation process.

Is there any way of doing this in Multiplatform 5.0?

Thanks,
Ravo.

RobertDickau
03-24-2003, 02:42 PM
I haven't tried it, myself, but perhaps get a handle to the installer's Frame object (following http://www.installshield.com/news/newsletter/0207-articles/Ismp_Frame_Object.asp), and then calling setState or setExtendedState with the Frame.ICONIFIED flag?

rsundaar
03-27-2003, 12:55 PM
We were able to use the following code snippet to accomplish this:

import com.installshield.wizard.*;
import com.installshield.wizard.awt.AWTWizardUI;
import java.awt.Frame;

public class ResizePanel extends WizardAction
{
private boolean isIconified = false;

public void execute(WizardBeanEvent event)
{
AWTWizardUI ui = (AWTWizardUI) getWizard().getUI();
Frame f = ui.getFrame();

if (getIsIconified())
f.setExtendedState(Frame.ICONIFIED);
else
f.setExtendedState(Frame.NORMAL);
}

public void setIsIconified (boolean toIconify)
{
isIconified = toIconify;
}

public boolean getIsIconified ()
{
return isIconified;
}
}