The GetTool transaction returns which tool is active in the specified document window.
Type XTYP_REQUEST
Syntax [GetTool(docwinID)]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific |
|
Reply |
Data type |
Values |
Meaning |
|
toolType |
WORD |
0 |
no tool |
|
|
|
1 |
Cut |
|
|
|
2 |
Copy |
|
|
|
3 |
Paste |
|
|
|
4 |
Line |
|
|
|
5 |
Box |
|
|
|
6 |
Circle |
|
|
|
7 |
Ellipse |
|
|
|
8 |
Arrow |
|
|
|
9 |
Sketch |
|
|
|
10 |
|
|
|
|
11 |
Polygon |
|
|
|
12 |
Text |
|
|
|
13 |
|
|
|
|
14 |
Dimension |
|
|
|
15 |
|
|
|
|
16 |
|
|
|
|
17 |
Rubout |
|
|
|
18 |
Erase Area |
|
|
|
19 |
Select |
|
|
|
22 |
Move/Resize |
|
|
|
23 |
Rotate |
|
|
|
29 |
Arc |
|
|
|
31 |
Highlighter |
|
|
|
32 |
Highlight Area |
Release information
Added in Release 3.50.
See also