Graying OUt Checkboxes in MSI Code

Got a problem you cannot solve? Try here.
Post Reply
Robert
Posts: 18
Joined: Thu Jul 26, 2007 11:56 am

Graying OUt Checkboxes in MSI Code

Post by Robert »

Is there a way to gray out a check box within the MSI code?
Roostar2004
Posts: 155
Joined: Mon Nov 12, 2007 11:59 am

Post by Roostar2004 »

I have not tried to see if it work like you are wanting it to but you might try this. Set the check button Option Enabled = False
and then in the code set the variable that the check box writes to to be true before the dialog comes up.
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

It's really quite simple;

Add a label control to your form, set the visible property to false, set the caption property to a variable, in your script where you determine if the check box should be enabled or diabled set the caption property variable to either true or false. In the dialog double click the label control, in the object rules tab/page set the appropriate rules to enable and disbale the check box based on the value of the label caption.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply