I have a form with some actions. I need to disable all actions when I call my LogOff procedure. How I have to do?
If by "actions" you mean that you use ActionList then set it's State
to asSuspended
. Per documentation then:
The actions in the action list do not respond when client objects tell them to "fire". The Enabled property for all actions in the list is unchanged
If you Using " ActionList " you can try :
ActionList1.State:=asSuspended;
this will suspend all actions in the ActionList.
if you want to enable it again use :
ActionList1.State:=asNormal;
if you using " ActionManager " you can use the same way :
ActionManager1.State:=asSuspended;
if want to enable it again :
ActionManager1.State:=asNormal;
Good Luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With