Graying Out Gadgets on Forms
- Last UpdatedOct 26, 2022
- 1 minute read
You can deactivate or reactivate all the gadgets on a form using the form method:
!MyForm.setactive( TRUE )
!MyForm.setactive( FALSE )
If you want most of the gadgets on the form to be deactivated, you can deactivate all gadgets on the form (and then activate the ones you want, individually) using the following form methods:
SetGadgetsActive( active is BOOLEAN )
SetActive( active is BOOLEAN )
SetActive(false) grays out all gadgets on the form, but doesn’t set their Active status, so that SetActive(true) restores the form to the precise state it was in before graying out, that is, any inactive gadgets will still be inactive.
The command:
SetGadgetsActive( false )
This grays out all gadgets on the form and sets their active status to inactive (their previous active state is lost). Similarly:
SetGadgetsActive( true )
This grays in all gadgets and sets their active status to active.