cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Daniel_Dority
Level 6

Custom Dialogs 'X' - Not Working

Hey there,

I've created several custom dialogs and I noticed the 'X' on the top right is not doing anything when clicked.

I stumbled over this thread and added the code in the switch block but it doesn't work.

http://community.installshield.com/showthread.php?t=180264


Any suggestions?

Thanks
Labels (1)
0 Kudos
(4) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Is this an InstallScript or InstallScript MSI project? Does this dialog code also encounter this issue in a sample project? Can you post the dialog code here or send it to me at joshs@acresso.com?
0 Kudos
Daniel_Dority
Level 6

This is an InstallScript MSI Project.

This is not an issue when working with Standard Dialogs, only my custom ones. I added the code in the link that I found, but did not help.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Do your custom dialogs have a pushbutton control with "C" as the text and a control ID of 2? If not, can you try adding a pushbutton on the dialog that uses the following settings:
Control Identifier: 2
Text: C
Visible: False

With this and the code added to the default switch case in the dialog code, test the close button again.

Please let me know if this helps.
0 Kudos
Not applicable

Also, note that there is a complete custom dialog example provided in the dialog sampler, which source is shipped with the product. This source can be used as a working sample for comparison.

Checking this source, make sure that you have a handler for IDCANCEL (e.g.)

// Escape or System menu - Close
case IDCANCEL:
bDone = TRUE;
bExit = TRUE;


Also, as Josh S. indicated in a previous post you may need to add a special invisible control to make this work.

Devin Ellingson
Software Developer
Acresso Software
0 Kudos