update_window

Declaration

update_window (win: WINDOW)

Description

Forces win to be repainted immediately. Use this function if you change a variable and you want a document to be redisplayed with that value.

This does not force a reformat of the frames in the window, so conceals will not be updated. Also, if you loaded an item into a frame in that window, those frames will not be loaded as a result of this call. They are loaded when the Frame Manager can do so.

See Also

conceal
window and frame functions
Window_Manager
Frame_Manager

Example

script calculate is
  progress := 1
  -- have a field hooked up to 'progress'
  -- do some work
  progress := 50
  update_window ('main')
  -- do more work
  progress := 75
  update_window ('main')
  -- do more work
  progress := 100
end