[Gambas-user] Menu and popup menu different behavior

Benoît Minisini g4mba5 at gmail.com
Fri Aug 21 01:38:36 CEST 2020


Le 21/08/2020 à 01:36, Benoît Minisini a écrit :
> Le 21/08/2020 à 01:06, Gianluigi a écrit :
>> Hi Benoit,
>>
>> can you please explain to me why the bar menu does not block the loop 
>> while the popup menu blocks it?
>>
>> I created a zip file to avoid GMail problems
>>
>> Thanks for your attention, greetings
>>
>> Gianluigi
>>
>> P.S. Test attached
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
> 
> Because the menu bar is handled by the GUI toolkit, not by Gambas.
> 
> Regards,
> 

If you use the Popup() method of a menu, or the ShowPopup() method on a 
window, a new event loop is run.

Anyway, you should assume that the behaviour of popup menus is undefined 
when calling the WAIT instruction.

Regards,

-- 
Benoît Minisini


More information about the User mailing list