Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Could anyone give any tips on or point me towards some info on a method of "locking" the controls on a form to prevent data from being changed.
>
>I would like to have an "edit" button that a user must push to then begin editting.
>
>Textboxes are very easy. I can drop them onto a pageframe and then enable and disable the pageframe. If combobox is on the pageframe, it will continue to be enabled.
>
>TIA.
In a manner similar to Mr Stowell's and Mr Booth's, I have a method that is in my form template class called .SetControlsEnabled(). It accepts two parameters, the first is a reference to a container object (form, page, container) and the second is either .T. or .F. depending on what I need the .Enabled property of the contained controls to be. The method loops through all the controls contained on whatever was passed in setting the .Enabled property.
Steve
Précédent
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