tgsel
Description
Selects graphic objects.
|
When an item is selected, any previously selected items are de-selected.
|
Example 155. Run a script when clicking an object graphic
Carry out the following steps:
1. Assign a text stream to a selected object graphic using the tgtext macro, or by selecting the > > menu option.
2. Define the text stream as a script by entering tgtpos -1
3. Select the object graphic by entering tgsel -1: the script will be run.
4. Assign the tgsel -1 macro to a keystroke or toolbar button by entering *0000tgsel -1 (optional).
Syntax
tgsel code:n? mouse control:b?
code
|
0
|
Deselect all
|
1
|
Select all
|
2
|
Exclusive select all
|
–1
|
Special (Script/Link mode)
|
|
mouse control
|
Add a mouse control sequence to handle the macro (optional)
|
Related Links