Information générale
Catégorie:
The Mere Mortals Framework
>Hello All,
>
>When I set the lAllowDelete property on a form based on cBizObjMaintenanceForm class to .F. the 'Delete' button does not become disabled. The 'Delete' menu bar under the 'File' menu pad does become disabled. Is there something else I need to do to get the 'Delete' command button disabled?
Try putting this in the refresh of the delete button...
IF TYPE("thisform.lAllowDelete") <> "U"
This.Enabled = (thisform.lAllowDelete AND ;
NOT thisform.lReadOnly)
ENDIF
************************
Which I think should be in there already. You can also put similar code into the new button but reference lAllowNew.
BOb
PS: If you add a delete button to the toolbar as I have done, put this code into its refresh:
IF TYPE("_SCREEN.ActiveForm.lAllowDelete") <> "U"
This.SetEnabled(_SCREEN.ActiveForm.lAllowDelete AND ;
NOT _SCREEN.ActiveForm.lReadOnly)
ENDIF
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement