[Gambas-user] Strange gb.qt5 error

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat Jan 19 01:19:32 CET 2019


I don't quite understand what exactly you need. But see the attached
project, maybe that is close enough?


Jussi

On Fri, Jan 18, 2019 at 10:38 PM Marco Ancillotti <gambas at servinfo.it>
wrote:

> 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...
> >
>
>
> ----[ 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/20190119/79a2d6cc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oneexample-0.0.1.tar.gz
Type: application/gzip
Size: 12029 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190119/79a2d6cc/attachment-0001.gz>


More information about the User mailing list