Loading...
 

Refresh

Refresh

Refresh

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top -

Instructs the ClassiX runtime to process all accumulated UI events from the Windows event queue before continuing execution. This has the effect that the display of the native windows is updated and any changes (e.g. to the title) are immediately visible.
This command used to be used to display the progress of a process in the window bar. However, this can now be solved more efficiently and ergonomically for the user via the Progress command.

Windows marks a window as "no response" or "application not responding" if a process does not process its Windows event queue for a long time. ClassiX normally only processes the Windows event queue if no InstantView code is currently being executed (in idle state). Long-running InstantView procedures can therefore lead to the application being marked as "no response" by Windows. This can be prevented by regularly calling Refresh in these procedures.

Example:

selectedStateTransactions iterate(UNSAFE)
    {
      T("Entfernen des ...", "Removal of dispo state...")
      Index 1 + 100 * card / String "% " + + " - " + counter String + PutValue(ControlWin)
      -> tmpTxn

      Incr(counter)
      counter 100 Mod ifnot { EndTXN BeginTXN Refresh }
    }