Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label won't initialize enabled=.F.
Message
From
08/07/2003 12:06:38
 
 
To
08/07/2003 11:33:03
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00807758
Message ID:
00808051
Views:
16
FYI, I designed this using the class designer. I just dropped the label on the container class. Then dropped the container class on the form.

>Thanks for bringing this to our attention.
>
>This goes back to VFP5. I sent it up the line for you. It works fine if the label is added to a visually designed form. Your workaround of setting the Enabled value to itself in the label init looks like a good one to me.
>
>Thanks again!
>
>>I'm using VFP 7.0
>>
>>LOCAL lo
>>lo = CREATEOBJECT( '_frm' )
>>lo.VISIBLE = .T.
>>SET STEP ON
>>
>>DEFINE CLASS _frm AS FORM
>>  ADD OBJECT cnt1 AS _cnt
>>ENDDEFINE
>>
>>DEFINE CLASS _cnt AS CONTAINER
>>  ADD OBJECT _lbl1 AS _lbl ;
>>    WITH ;
>>    CAPTION = 'This should be disabled', ;
>>    ENABLED = .F.
>>ENDDEFINE
>>
>>DEFINE CLASS _lbl AS LABEL
>>  PROCEDURE CLICK()
>>    WAIT WINDOW PROGRAM()
>>  ENDPROC
>>ENDDEFINE
>>
>>Why isn't _lbl1 displayed disabled?
>>It is disabled. If you click on it, nothing happens because it's disabled. But it appears enabled.
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform