Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 7 Monaten
Letzter Beitrag:
vor 3 Jahren, 7 Monaten
Beteiligte Autoren:
GuenterP, Stewart Crisler, Paulo Oliveira, DianeM

Window that would refresh itself

Startbeitrag von DianeM am 05.11.2014 16:19

I need to create a window with statistics that would refresh itself after xx minutes. Can I do that and how?


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.

von Paulo Oliveira - am 05.11.2014 16:27
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

von Stewart Crisler - am 05.11.2014 18:04
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().

von GuenterP - am 06.11.2014 07:34
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.