[Gambas-user] Strange gb.qt5 error
Marco Ancillotti
gambas at servinfo.it
Fri Jan 18 21:30:08 CET 2019
Hi all,
Ok , I have a wait in the component an cannot change to sleep, I will
post the code tomorrow when have time to minimize and separate the problem.
As a note I can't use any popup ( my program works on remote x2go
session from windows and some users hide popup and don't know how to
exit program ) so I write a component that work the same as
message.question but open inside main form.
The component have a open event that return what button have been pressed.
To make the open event return right data after button click I put in the
end somethink like:
While $bclick = False
Try Wait 0.1
Try IsNull(Me.window)
If Error Then $bclick = True
Wend
Return $retvalue
The $retvalue and $bclick are changed by button pressed inside the
component.
This is the only way I found to make it work , is there another way ?
Using that logic I need the wait to make the open event wait for button
click.
Thank's,
marco.
Il 18/01/19 21:12, Benoît Minisini ha scritto:
> Le 18/01/2019 à 21:01, Jussi Lahtinen a écrit :
>> The apri function has Wait command inside it? That is not allowed,
>> because wait calls the event loop. Use Sleep (or timer) instead.
>>
>>
>> Jussi
>>
>
> Yes. And without seeing the actual code, we have to write ton of mails
> to guess...
>
More information about the User
mailing list