setting htmltext makes field appear disabled

Martin Baxter martin at atwork.bdx.co.uk
Sun Apr 28 17:13:01 EDT 2002


Bob,

That's a better workaround than mine. Actually I suspect that pretty much
any action would probably restore the appearance, but this particular
'no-action, action' has a certain 'poetic justness' about it.

martin

>I've confirmed that the field isn't truly disabled, based on the settings
>of the field properties. It just looks as though it is.
>
>My work around has been to do something like the following:
>
>  set the htmlText of theField to myHTML
>  set the enabled of theField to the enabled of theField
>
>The second line is a no-op, leaving the field disabled if it truly is. If
>the field is enabled though, it restores the appearance to enabled.
>
>Bob
>
>
>> I just set the htmltext of a standard scrolling field for the first time
>> since I upgraded to the latest v111. When I do so the field takes the
>> appearance of a disabled field. The backcolor becomes light grey and black
>> text becomes a dark grey.
>> As soon as I click in the field to edit, and give it focus, the field
>> resumes the normal appearance of an editable field, ie the backcolor turns
>> white and the black text becomes black again.
>> I'm using release 1.1.1 on macOS
>>
>>martin baxter





More information about the use-livecode mailing list