Command: hint

Syntax

hint { <file> }

or

hint {
    <menu_block>
}

Description

Display a pop-up message and wait for a mouse hit.

Parameters

Switches

Block

The format of each line within menu_block or file is:

<num>: { <message> } { <command_block> }

where:

Notes

The button used to terminate the mouse action can be examined via the system numeric button.

When an image file is used for the hint, neither the title nor pictorial button images (-but) are displayed.

If none of the switches -aw, -gw or -iw is present, then a mouse hit in any graphic or alpha window will be accepted.

Examples

Prompt for a point selection (in graphic windows only).

hint -col=grey, -gw {
    0: 'Indicate a 3-D Point'
}
if (button != 2) {
    uncursor; # Reuse mouse point.
    tell <'Point selected:',pcur>
}

Crude window manager hint with button indications.

hint -but, -e=mouse_window {
    1: 'Select Window' {
        | wexpose mouse_window
        current_window = mouse_window
    }
    2: '*** QUIT ***'
    3: 'Move Window' { | wmove mouse_window }
    4: 'Hide Window' { | whide mouse_window }
    5: 'Resize Window' { | wsize mouse_window }
    6: 'Repaint Window' { | wpaint mouse_window }
    7: 'Iconise Window' { | wclose mouse_window }
    8: '*** QUIT ***'
    9: 'Delete Window' { | wdelete mouse_window }
}

Raster file hint (note the empty menu block).

hint -cr='my_file.ras' { }

See Also

Commands:

choice, string, uncursor, window

Functions:

pcur (point)

Identifiers:

button (numeric), menu_position (numeric), tracking (procedure)