[Gambas-user] Popup menu used but which is the underlying control?
peterpeyotle at gmx.de
Fri Oct 18 09:38:45 CEST 2019
I would solve this as follows: define a private variable of type object. in the mouseevent calling the popup, last is the control clicked on. set the object variable = last. Now if you use a point in the popup you can use the properties of the control via the object variable.
Von meinem Sony Xperia™-Smartphone gesendet
---- Bruce schrieb ----
>I have a popup menu defined on a form that is used in several controls.
>When it is used I need to get some data out of the underlying control,
>but which one is it? Last only gives me the menu.
>----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User