Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label won't initialize enabled=.F.
Message
From
08/07/2003 11:33:03
 
 
To
07/07/2003 20:11:21
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00807758
Message ID:
00808022
Views:
15
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.
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform