The topic already says it: What you think about replacing
> DisableGadget(#Gadget, X)
by
> EnableGadget(#Gadget)
> DisableGadget(#Gadget)
?
This would less to write and it makes more sense: If I want to enable a gadget, why should I use DisableGadget??
The state of a gadget can only be 1 or 0, so IMHO this would be a nice feature.
By the way: Checkboxes can have 3 sates: 0, 1 and a state which indicates that not all objects are meant (in this case the checkbox' backgorund is grayed and checked in windows).
Regardless of implementing this feature: Is it possible to add the 3rd state for the checkbox?
My suggesttion would be the following then:
Code: Select all
DisableGadget(#Gadget) ; Disables a gadget
EnableGadget(#Gadget, [State]) ; Enables a Gadget, 'State' is optional, it's only needed with Checkboxes