The Avi Macro Files can be used in Ax to make it look more cool.
Run the following job and check it out.
static void Animate(Args _args)
{
Args args;
Form formanimate;
FormRun formrun;
FormBuildDesign formdesign;
FormBuildAnimateControl animatecontrol;
FormBuildGroupControl groupcontrol;
Container c;
counter counter;
;
#AviFiles
c =[#AviFileCopy,#AviFileDel,#AviFileDelr,#AviFileMove,#AviSearch];
formanimate = new form();
formanimate.name("Example for Animation Controls");
formdesign = formanimate.addDesign("design");
formdesign.caption("AviFiles from MacroFiles");
formdesign.columns(3);
for(counter = 1;counter<=conlen(c);counter++)
{
groupControl = formDesign.addControl(FormControlType::Group,'group'+int2str(counter));
groupControl.widthMode(FormWidth::ColumnWidth);
groupControl.caption(strfmt("@SYS70938", conpeek(c,counter), conpeek(c,counter)));
animateControl = groupControl.addControl(FormControlType::Animate,'animate'+int2str(counter));
animateControl.autoPlay(true);
animateControl.animateFile(conpeek(c,counter));
}
args = new Args();
args.object(formanimate);
formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.detach();
}
Monday, June 02, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment