[Gambas-user] Popup menu used but which is the underlying control?

Bruce adamnt42 at gmail.com
Fri Oct 18 12:11:59 CEST 2019


I like your thinking, needs some work on my part. (Funeral today, hard 
to think at this stage, I'll be back... but thanks for the clue!0
b

On 18/10/19 6:38 pm, Peter Peyotle wrote:
> 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.
> 
> tia
> Bruce
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 


More information about the User mailing list