PDA

View Full Version : Disabled checkboxes?



David Webber
07-03-2007, 03:59 AM
Is it possible to have a checkbox dialogue with some of the check boxes disabled?

My scenario is as follows:

Which languages do you wish to have available?

x English
x Spanish
x French
x Dutch
x Swedish

I would like English to be checked and disabled (as it is always available because of the way the program is written). I believe I can check it by initialising the variable which stores the results, but it would be nice also to disable it.

(If I can't do it, I can miss English off the list and state in the text that it is always available, but it would be slightly more egalitarian to do it with the list.)

Dave

linder
07-03-2007, 04:29 AM
Dave,

No problem. I have developed a small demo for your (please see attached .zip and screenshot).

Does this help?

Friedrich

linder
07-03-2007, 04:33 AM
By the way, the resulting installer dialog looks like this (see screenshot).

Friedrich

David Webber
07-03-2007, 05:30 AM
Dave,

No problem. I have developed a small demo for your (please see attached .zip and screenshot).

Does this help?

Friedrich

Thanks again Friedrich - I must be getting better at this if I'm asking about undocumented features :-) I'll give it a whirl!

BTW - I have already discovered the trick of defining a translated string
#1033_LANG_INIT# = 0000
#1034_LANG_INIT# = 1000
etc, and initialising the check box settings with it so that if the installer is being used in Spanish, then the Spanish box is checked by default (etc).

I love it :-)

Dave

linder
07-03-2007, 05:33 AM
:-) <bg>

It will be documented in the next build. Thanks for all your feedback!

Friedrich