is_enabled

Any child tile can have an is_enabled attribute with value true or false. A value of true will enable the tile, which is also the default behaviour. A value of false will disable the tile, it will then be displayed "grayed out".
This attribute also works on a dialog. By default a dialog is disabled when calling new_dialog. The dialog will be automatically enabled when start_dialog is called. This mechanism prevents activation of callbacks before start_dialog is called. Indeed: in a disabled dialog, no callbacks can be triggered.
This attribute has no effect on other cluster tiles.
The enabled state of any tile, including cluster tiles, can be changed at runtime by using the function mode_tile. When using mode_tile to enable or disable a cluster, all of its children will be enabled or disabled respectively.

related tiles

All of the child tiles or a dialog can have an is_enabled attribute.
© Bricsys NV. All rights reserved.