Archive for October 2006

Disabling checkboxes

October 2, 2006

Checkboxes is a nice way to show a set of options to user. If the user isn’t allowed to change the values, the boxes are “grayed out” by setting the Enabled := False. This is a common practice in GUIs, but it might happen that You still want to use the default (normal) colours when showing the disabled checkboxes.

In the following example checkboxes on the right have Enabled := False. On the left the boxes are placed on TPanel which is disabled by Enabled := False:

checkboxes_disabled.png

Advertisements