Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Status dialogs' Cancel button


2 replies to this topic

MJRudowsky

MJRudowsky
  • Members
  • 2 posts

Posted 12 November 2004 - 19:36

Sorry if it's impolite to post this on both the InstallShield and InstallSite forums, but I'm desperate! blink.gif

I've seen messages of people trying to disable the Cancel button on the status dialogs(STATUSDLG, STATUSEX, etc.), so I know how to do that.

But my problem is I WANT the Cancel button and I want it to work. Right now when I click on the Cancel button, it changes the cursor to an hourglass and does nothing.

How do you catch the Cancel button?

I put the following code in OnFirstUIBefore to illustrate:

Enable(STATUSDLG);
nCount = 0;
while ( nCount < 100 )
SetStatusWindow( nCount, "Testing" );
Delay(1);
nCount = nCount + 1;
endwhile;
Disable(STATUSDLG);
exit;

Thanks for any help!!
-Mike


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 13 November 2004 - 15:03

The Cancel button on the status dialog only works during filke trabsfer. It doesn't work in cases where you manually update the status bar, like you are doing. This is a known limitation in InstallShield, and I'm not aware of any workaround or fix.

MJRudowsky

MJRudowsky
  • Members
  • 2 posts

Posted 15 November 2004 - 16:05

I was afraid of that. Thanks for confirming it for me!

So as an alternative, I've been trying to use the IS dialog control that is the status bar (10303). I've been able to show the dialog using EzDefineDialog, and get the Cancel button to work, but I have not been able to update the progress bar. mad.gif

Does anyone know the command to set the progress bar?

Many thanks again,
-Mike