is_window_visible

Declaration

is_window_visible (win: WINDOW)

Description

Returns True if win is visible, otherwise False.

See Also

hide_window
show_window
set_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