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

Peter Peyotle peterpeyotle at gmx.de
Fri Oct 18 12:45:55 CEST 2019


Oh, I'm sorry. 
 all the best and a lot of power for you.

Von meinem Sony Xperia™-Smartphone gesendet

---- Bruce schrieb ----

>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 ]----
>> 
>
>----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191018/25ef08d5/attachment.html>


More information about the User mailing list