- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
You can find more info about this solution at http://www.windjack.com/product/acrodialogs/
also check http://www.windjack.com/resources/Examples/DialogUses.pdf
here is an example that might help you achieve what you are looking for...
var CustomAlert =
{
result:"cancel",
DoDialog: function(){return app.execDialog(this);},
initialize: function(dialog)
{
var dlgInit =
{
"img2":
{
"width": 25,
"height": 25,
offset: 0,
"read": function(bytes){return asdf.slice(this.offset,this.offset+=bytes);}
},
"stat": "Some French Text",
};
dialog.load(dlgInit);
},
commit: function(dialog)
{
var oRslt = dialog.store();
},
description:
{
name: "Message Title",
elements:
[
{
type: "view",
elements:
[
{
type: "view",
align_children: "align_top",
elements:
[
{
type: "static_text",
item_id: "stat",
width: 224,
height: 64,
alignment: "align_fill",
font: "dialog",
},
]
},
{
type: "ok_cancel",
ok_name: "Oui",
cancel_name: "Non",
},
]
},
]
}
};
// Example Code
if("ok" == CustomAlert.DoDialog())
{
xfa.host.messageBox("Oui is used")
}else {
xfa.host.messageBox("Non is used")
}
Good luck,
Views
Replies
Total Likes