Kbase P21043: What are the benefits of HIDE over Visible or vice-versa?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/25/2003 |
|
Status: Unverified
GOAL:
What are the benefits of HIDE over Visible or vice-versa?
FIX:
HIDE:
Makes a widget invisible (sets its VISIBLE attribute to FALSE), or clears the message area for a window, or hides all widgets and clears messages in a window.
When you HIDE a visible window, any visible descendant windows are hidden also (including iconified descendants), but any visible ancestor windows remain unaffected. However, if you HIDE a window whose HIDDEN attribute is currently set to TRUE, its descendant windows remain unaffected.
VISIBLE:
This attribute is read-only for field groups, menus, menu items, and submenus. A field-level widget must be specified in a frame definition before you set its VISIBLE attribute.
The behavior of the VISIBLE attribute depends on the setting of the HIDDEN attribute of related widgets:
When you set the VISIBLE attribute of a window to TRUE:
Progress displays that window and the widgets it contains whose VISIBLE
attributes are already set to TRUE. Otherwise, you must explicitly
DISPLAY or VIEW a widget, or otherwise set a widget's VISIBLE attribute
to TRUE in order to display it in the window.
Progress displays that window and all ancestor windows only if no
ancestor window has its HIDDEN attribute set to TRUE. If Progress
displays the window, it also displays all descendant windows down to,
but not including, the first descendant window whose HIDDEN attribute is
set to TRUE.
When you set the VISIBLE attribute of any widget within a window to TRUE, Progress displays that widget, any ancestor frames, and the window (if necessary), unless the HIDDEN attribute of the window is TRUE. If the window's HIDDEN attribute is TRUE, Progress sets the VISIBLE attributes of the widget and any ancestor frames to TRUE and sets the HIDDEN attributes of the widget and its ancestor frames to FALSE without displaying them.
When you set the VISIBLE attribute of a frame to TRUE, Progress displays all of its field-level widgets and descendant frames, except those whose HIDDEN attributes are TRUE.
When you explicitly set the VISIBLE attribute of any widget to TRUE, Progress sets its HIDDEN attribute to FALSE. If you explicitly set the VISIBLE attribute of a field-level widget or child frame to FALSE while its parent frame remains visible, Progress also sets the HIDDEN attribute of the field-level widget or child frame to TRUE. If you explicitly set the VISIBLE attribute of a child window to FALSE, the HIDDEN attribute of the child window remains unchanged, whether or not the parent window is visible.