set_window_visible

Declaration

set_window_visible (win: WINDOW; value: BOOLEAN)

Description

Shows win if value is True, hides win if value is False.

See Also

hide_window
show_window
is_window_visible
window and frame functions

Window_Manager

Example

script switch_windows is
  if is_window_visible ('explanation') then
    keep_open := ask ('do you want to close the explanation?', True)
    set_window_visible ('explanation', keep_open)
  end
  hide_window ('questions')
  show_window ('index')
end