PDA

View Full Version : Ok and Cancel



NewsArchive
02-18-2012, 01:30 AM
I have a display message that shows where the files will be installed and an
OK and Cancel Button.
How do I check for the Cancel button so I can abort the install?

--
Dan Scott
C55 - C6.3 Legacy
Garage Partner Pro / Invoice Partner
www.garagepartner.com
Plan A is always more effective when the device you are working on
understands that Plan B involves a larger hammer

NewsArchive
02-18-2012, 01:30 AM
Dan,

> I have a display message that shows where the files will be installed and
> an OK and Cancel Button.
> How do I check for the Cancel button so I can abort the install?

Please see attached screenshot, taken from the F1 online help.

In the "Display Message Box" properties, go to the "Flags" tab and select
the MB_OKCANCEL Buttons option.

Then in your code, check for $IDOK$.

For example:

Message Box "Abort installation?" -- "Message"

If %_SB_RETURN% Does Not Equal "$IDOK$" Then
Exit Installation
End

Friedrich

NewsArchive
02-18-2012, 01:31 AM
Friedrich,

You know that Men Don't Read!!! <g>

Jane Fleming

NewsArchive
02-18-2012, 01:31 AM
Ok, I did a index search on Variables. I need not to search too much <g>

--
Dan Scott
C55 - C6.3 Legacy
Garage Partner Pro / Invoice Partner
www.garagepartner.com
Plan A is always more effective when the device you are working on
understands that Plan B involves a larger hammer

NewsArchive
02-18-2012, 01:32 AM
Friedrich

Ok, now, how do I get the message to pop up AFTER the dialog box before the
message
Message now pops up prior to the dialog boxes prior to the path being set.

Also, very important serious question !! How do I get SB7 to switch on my
keurig coffee maker during compilation?
--
Dan Scott
C55 - C6.3 Legacy
Garage Partner Pro / Invoice Partner
www.garagepartner.com
Plan A is always more effective when the device you are working on
understands that Plan B involves a larger hammer

NewsArchive
02-18-2012, 01:33 AM
Hi Dan,

> Ok, now, how do I get the message to pop up AFTER the dialog box before
> the message Message now pops up prior to the dialog boxes prior to the
> path being set.

You have to do this in the Loop Wizard (see attached screenshot).

> Also, very important serious question !! How do I get SB7 to switch on my
> keurig coffee maker during compilation?

<G> ;-)

Friedrich