## WorkShop Visual Replay Command Syntax - Widget State Expressions

#### Keywords

- IsVisible
- IsManaged
- IsRealized
- IsHere

#### Synopsis

        if expression
    	actions
        endif

#### Inputs

- expression - one of the keywords listed above

#### Description

Where parts of a dialog are selectively displayed, you can check which parts are managed and realized using the IsManaged and IsRealized expressions.

IsVisible is intended for small (VGA) displays where the whole of a dialog may not be visible on the screen. This is important as Motif TAB navigation traversal model ignores controls which are off screen.

IsHere simply checks whether the widget exists in the current shell.

#### Example

        in ApplicationShell
    	cascade file_menu
    	    select fm_menu.fm_exit
    	if IsVisible(save_dialog)
    	    in save_dialog
    		push save.ok
    	else
    		message Save Dialog cannot be seen
    	endif

See also:

- WorkShop Visual Replay Command Syntax