Element: panel.exec { }

Type

callback

Description

The command procedure to be executed when the panel is activated. The window parent of panel and panel itself are passed to the procedure as parameters. When panel belongs to a table window, the row/column index of the panel is passed as a third parameter.

This element is activated for different reasons depending on the panel type:

Initially, panels have a .exec procedure of null.

For button panels in a menu bar, a valid exec procedure makes the button visible. A null exec procedure makes it invisible.

Parameters

panel.exec (<window>,<panel>{,<row>})

Examples

win1.panels[1].exec = {
    args w=window, p=panel
    tell <'New text input box value:',p.text>
}