Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Button group
Message
From
05/05/2005 10:52:24
 
 
To
05/05/2005 10:39:06
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01011123
Message ID:
01011303
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform