PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Window that would refresh itself
Window that would refresh itself
Iniciado por guest, 05,nov. 2014 17:19 - 4 respuestas
Publicado el 05,noviembre 2014 - 17:19
I need to create a window with statistics that would refresh itself after xx minutes. Can I do that and how?
Publicado el 05,noviembre 2014 - 17:27
I don't know exactly what you need but probably WinRedraw() can help you or if you need to execute the initialization of the windows use ExecuteProcess.

To execute it every x minutes use TimerSys or check the help for Automatic procedures.
Publicado el 05,noviembre 2014 - 19:04
I would suggest that you use a local procedure to contain the window update code and the automatic timer function (that tiny clock looking thing in the bar above the procedure to the far right) provided by WinDev to repeatedly launch this procedure. SourceToScreen(), direct update to the controls or TableDisplay(), etc for list type controls will get the refreshing done after you update the data.

Stewart Crisler
Publicado el 05,noviembre 2014 - 20:28
Hi Diane

yes you can... Either by using the Timer instruction or by setting a
procedure to auto-repeat

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com


On 11/5/2014 10:19 AM, DianeM wrote:
I need to create a window with statistics that would refresh itself
after xx minutes. Can I do that and how?
Publicado el 06,noviembre 2014 - 08:34
Hi, the RAD11-Tables generated in procedural mode will show you a good example of how a Table refresh can be accomplished. Other controls can be refreshed in a similar way. Doing too much refreshes will slow down operation, of course. Best would be to have a central monitoring of data files (in-memory and physical ones) and signal a necessary refresh to open windows. For finding out whether a HF data file has changed or not, there's HVersion().