lundi 9 janvier 2012

Can i remove or disable the cancel button from a dialog ?

Object dialog()
{
    FormBuildCommandButtonControl   cancelButton;
    ;
    dialog = super();
    //Add dialog fields

    cancelButton = dialog.formBuildDesign().control('CancelButton');
    //Disable the Cancel button
    cancelButton.enabled(false);
    //Hide the Cancel button
    cancelButton.visible(false);

    return dialog;
}

Aucun commentaire:

Enregistrer un commentaire