X-Designer Replay Command Syntax - Widget State Expressions

X-Designer Replay Command Syntax - Widget State Expressions


Keywords

Synopsis

    if expression
	actions
    endif

Inputs

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: