Event that occurs when a toolbox button, or the equivalent menu item, is clicked.
Syntax
pd.ButtonPressed (buttonNumber, handled)
The ButtonPressed event syntax has the following parts:
Part |
Description |
buttonNumber |
An integer that identifies the button that caused the event. |
handled |
Set handled=1 to cause Amos Graphics to perform normal processing of the button click after the return from the ButtonPressed event. Set handled=0 to suppress normal processing of the button click. In other words, set handled=1 if you want to substitute your handling of a button click in place of Amos Graphics's normal handling. Set handled=0 to perform your handling of a button click before Amos Graphics's normal handling. |
Settings
The settings for buttonNumber are:
Value |
Menu item |
38 |
File->New |
95 |
File->New with Template... |
39 |
File->Open... |
70 |
File->Retrieve Backup... |
40 |
File->Save |
41 |
File->Save As... |
96 |
File->Save As Template... |
43 |
File->Data Files... |
44 |
File->Print... |
104 |
File->Manager... |
46 |
Exit |
Value |
Menu item |
51 |
Edit->Undo |
52 |
Edit->Redo |
53 |
Edit->Copy (to clipboard) |
14 |
Edit->Select |
67 |
Edit->Select All |
68 |
Edit->Deselect All |
80 |
Edit->Link |
9 |
Edit->Move |
10 |
Edit->Duplicate |
5 |
Edit->Erase |
23 |
Edit->Move Parameter |
76 |
Edit->Reflect |
75 |
Edit->Rotate |
24 |
Edit->Shape of Object |
20 |
Edit->Space Horizontally |
21 |
Edit->Space Vertically |
86 |
Edit->Drag Properties... |
37 |
Edit->Fit to Page |
66 |
Edit->Touch Up |
Value |
Menu item |
87 |
View->Interface Properties... |
88 |
View->Analysis Properties... |
85 |
View->Object Properties... |
89 |
View->Variables in Model... |
90 |
View->Variables in Dataset... |
91 |
View->Parameters... |
92 |
View->Switch to Other View |
42 |
View->Text Output |
60 |
View->Full Screen |
Value |
Menu item |
1 |
Diagram->Draw Observed |
2 |
Diagram->Draw Unobserved |
3 |
Diagram->Draw Path |
4 |
Diagram->Draw Covariance |
6 |
Diagram->Figure Caption |
77 |
Diagram->Draw Indicator Variable |
78 |
Diagram->Draw Unique Variable |
8 |
Diagram->Zoom |
31 |
Diagram->Zoom In |
32 |
Diagram->Zoom Out |
33 |
Diagram->Zoom Page |
30 |
Diagram->Scroll |
25 |
Diagram->Loupe |
83 |
Diagram->Redraw diagram |
Value |
Menu item |
7 |
Analyze->Calculate Estimates |
98 |
Analyze->Stop Calculating Estimates |
94 |
Analyze->Manage Groups... |
93 |
Analyze->Manage Models... |
71 |
Analyze->Modeling Lab... |
22 |
Analyze->Toggle Observed/Unobserved |
79 |
Analyze->Degrees of freedom... |
107 |
Analyze->Specification Search... |
108 |
Analyze->Multiple-Group Analysis... |
110 |
Analyze->Bayesian Estimation... |
111 |
Analyze->Data Imputation... |
Value |
Menu item |
102 |
Tools->List Font... |
74 |
Tools->Smart |
72 |
Tools->Outline |
54 |
Tools->Square |
55 |
Tools->Golden |
109 |
Tools->Seed Manager... |
56 |
Tools->Customize |
Value |
Menu item |
102 |
Plugins->Plugins... |
Value |
Menu item |
57 |
Help->Contents |
103 |
Help->Amos on the Web |
58 |
Help->About Amos |
See example.