|
| Iniciado por Sebastian Arnold, 30,may. 2016 14:35 - 5 respuestas |
| |
| | | |
|
| |
Miembro registrado 102 mensajes |
|
| Publicado el 30,mayo 2016 - 14:35 |
I'm just curious. How are you doing a 'Please be patient while fetching SQL data' or someting similar in a window?

-- http://arnoldconsult.de WinDev 20 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL |
| |
| |
| | | |
|
| | |
| |
| Publicado el 30,mayo 2016 - 15:22 |
Hi Sebastian
an animated gif and a text in a window of nay style, and an openchild of said window, then a close of said window when your code continues...
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
More information on http://www.fabriceharari.com |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 102 mensajes |
|
| Publicado el 30,mayo 2016 - 16:00 |
Thanks Fabrice,
how do you prevent the user from moving the parent window? How do you manage the animated gif to continue beeing animated? In my tests after some clicks anywhere on the parent or the child window the windows gets blurred and the animations stops.
TIA Sebastian
-- http://arnoldconsult.de WinDev 20 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL |
| |
| |
| | | |
|
| | |
| |
| Publicado el 30,mayo 2016 - 20:16 |
Hi again,
you put the original window as grayed (mywindow..state=grayed) before opening the child window
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
More information on http://www.fabriceharari.com |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 34 mensajes |
|
| Publicado el 09,junio 2016 - 13:10 |
Hello Sebastian,
You can open the window with the gif on it, start the procedure to fetch the data in a thread.
After the window is initialised
gbDataFetched is a boolean
ThreadExecute("dataThread",threadNormal,fetchData)
WHILE NOT gbDataFetched Multitask() END
fetchData() procedure
gbDataFetched = True
Because the window doesn't execute the procedure you never end up with a window that isn't responding
Best regards,
Tim |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 102 mensajes |
|
| Publicado el 09,junio 2016 - 17:23 |
Thanks Tim,
this seems to work, but one problem remains: the gif isn't animated any more after a few seconds.
I also tried to avoid the global boolean to check if the thread still runs like this:
LOOP MultitaskRedraw(WIN_Progress) DO WHILE NOT ThreadWait("Ora")
But as I said, no difference with the animated gif.
I just checked, it doesn't work with an infinite progress bar as well.
Thanks anyway.
Sebastian
-- http://arnoldconsult.de WinDev 20 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL |
| |
| |
| | | |
|
| | | | |
| | |
|