Modifying the User Interface
Using Adobe Dialog Manager (ADM) in Acrobat JavaScript
10
// Function to handle the user’s list selection:
function ListHandler(rc)
{
switch (rc) {
case 1:
app.alert("ListHandler response for 1
break;
case 2:
app.alert("ListHandler response for 2
break;
case 3:
app.alert("ListHandler response for 3
break;
case 4:
app.alert("ListHandler response for 4
break;
default:
app.alert("Invalid selection");
break;
}
}
rc = app.execDialog(myDialog);
- one");
- two");
- three");
- four");
Acrobat JavaScript Scripting Guide
169