>>Hello again,
>>
>>I have a check box linked to a logical field. Sometimes in forms, I would like to display it's state, but don't want users to change it. I used the Object.enable=.f. property, but users are still able to click on it to change it's state. I also checked the Readonly property, but apparently it does not have that property. Any ideas how I can prevent users from changing the state of the checkbox
>>
>>BTW thank you all for providing answers to my previous questions. They all work...
>
>Vozdra :)
>
>You can set a property in the form when you want the checkboxes disabled, and in these checkboxes' .GotFocus simply put
>
>if ThisForm.BoxesDisabled
> this.lostfocus
>endif
>
>Another way is to put
>
>return not thisform.BoxesDisabled
>
>in the boxes' When event method. Of course, I have assumed you set this property to .t. when you want to forbid changing the checkboxes' state, and .f. when you want to allow it.
Response from 'left field': I also wanted to show such a field -- drew a sunken container and placed a WingDing font chr(252) inside the box. Looks a little different from the VFP check ( I think it looks better ), it is sizable, and totally, completely unable to be changed by the user.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only