[Gambas-user] Creating Actions at runtime

Benoît Minisini g4mba5 at gmail.com
Sat Sep 29 11:56:06 CEST 2018


Le 29/09/2018 à 03:41, Me a écrit :
> 
> I don't think that the latter would work as the code defining the control action could
> be anywhere. Not necessarily when and where the control is created?
> 
> An explicit Action.Add() would be beneficial,
> 
> The thing I don't understand is why the new action doesn't appear in Action.List but the
> Action works? In other words, where does the new action string get registered? Is it
> somewhere down low in the UI library itself? I have searched myself silly through the
> gambas source code but I cannot find it.
> 
> regards
> Bruce
> --
> adamant42 at gmail.com
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 

The Action._Register() method is called each time the Action property of 
a control changes.

-- 
Benoît Minisini


More information about the User mailing list