Link Editor dialog

The Link Editor is used to add links to buttons - that is, to make pressing the buttons perform actions.

To add a link, select the button in the design area, then select Edit links from the Widget menu.

The Link Editor dialog contains a number of areas: a option menu which allows you to specify the Type of a link, a destination widget selection field, an array of buttons to set or unset the various links you have specified and a canvas which displays all the links which exist for the currently selected widget.

Supported Link Types are Show, Hide, Manage, Unmanage, Enable and Disable.

To add a link, select the destination widget. This may be in a different dialog, in which case you will have to retrieve the dialog from the window holding area. Click on the Add button. The link will be added and an icon which represents the link will be added into the links canvas window.

In Microsoft Windows Mode, if a destination widget cannot be mapped through to an object on Microsoft Windows, the Add button is pink. You can still add the link but it will only be effective on Motif. The entry in the list of links will be pink to indicate this.

You can add as many links as you want to a given button. As soon as you have added a link, you can try it out by pressing the button in your design window.

To remove a link, select the link in the links window and click on the Remove button.

Groups can be used as a link destination in the Edit Links dialog, Using Groups as link destinations provides you with a quick and simple means of, for example, hiding or disabling whole groups of widgets at once.

NOTES

Links reference the destination widget by variable name. Therefore you can only create a link to a widget if you have set that widget's variable name explicitly. If you want to add a link to a shell widget, you must name both the shell and its child.

Changing the name of a widget which is the destination of a link will cause the link to be ineffective.

See also: