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