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;
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.