// Dialog with instructions
Dialog dialog;
FormBuildCommandButtonControl okButton;
#define.okButton('OkButton') //See Dialog class
;
dialog = new Dialog("@SYS76421");
// Instructions, Instructions, Instructions
dialog.addText("@EVE580");
okButton = dialog.formBuildDesign().control(#okButton);
if (okButton)
{
// Select Next to resume (EN) / Selecciona Siguiente para continuar (ES)
okButton.helpText("@EVE581");
// Next (EN) / Siguiente (ES)
okButton.text("@SYS6441");
okButton.defaultButton(true);
}
dialog.run();
if (dialog.closedOK())
{
Box::info("We closedOK!");
return;
} else {
return;
}
As always, someone cleverer than me was able to grab a handle to what was going on. In my version of Axapta the commented code in the Dialog.initButtons() function will get you on your way to get a handle on those Dialog buttons.
No hay comentarios:
Publicar un comentario