On 8/11/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
Thanks for the good example. With the protected method you can easily do 
dangerous things, like adding an action twice or forgetting to remove it. With 
the 'protected' AddAction you could do such things only with dirty tricks like 
the above. The normal way is:

aOK.ActionList:=FActionList;

This is not only shorter, but also safe.

Ah... Never saw the TAction.ActionList property.  Thanks for the tip!
Will be updating my code shortly and get rid of that hack.  :-)

Regards,
 Graeme.


--
There's no place like 127.0.0.1
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to