Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Button group
Message
De
05/05/2005 10:52:24
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
05/05/2005 10:39:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Divers
Thread ID:
01011123
Message ID:
01011303
Vues:
19
>Hmmm... I did that, changed the "text8" portion to "searchbox" (the name of the textbox), put the code into the Refresh method of "form1" (the name of the form), and "searchbox" is still inaccessible, whether in edit mode or not. I can click into the box, but can't type anything, and the Status bar says "This control is read-only."

John,

The textbox has a ReadOnly property. Check to make sure its set to .F. You also might want to add DODEFAULT() in the form.Refresh() method just before the code to Enable\Disable the textbox.

Regards,

>
>>In the form.refresh method. Remember to change the text8 to whatever the name of your textbox is.
>>>Looks good to me. Last (hopefully) stupid question: where does this chunk of code go?
>>>
>>>Thanks again for all your help!
>>>
>>>>Yes, I would do it this way:
>>>>
>>>>IF !THISFORM.buttonset1.editmode
>>>>  THISFORM.text8.ENABLED = .T.
>>>>ELSE
>>>>  THISFORM.text8.ENABLED = .F.
>>>>ENDIF
>>>>
>>>>buttoneset1 is the usual name for the command group of buttons that control add, save, delete and exit, etc. editmode is a property on that command group, that the parent code looks at to deturmine the setting for the form's objects.
>>>>HTH
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform