[cells-devel] Re: Celtk: background not getting set/sent for entry widget: SOLVED !
Frank Goenninger
frgo at mac.com
Sat Jan 6 22:56:55 UTC 2007
Heya -
solved!
It does not depend on the order of the parameters. Was a simple bug I
had in my code... - Sorry for that ;-)
Frank
Am 06.01.2007 um 23:49 schrieb Frank Goenninger:
> Am 06.01.2007 um 23:09 schrieb Frank Goenninger:
>
>> Me again - Hi!
>>
>> When creating an entry widget as
>>
>> (mk-entry :id :data-entry
>> :width 40
>> :parent-x 65
>> :parent-y 115
>> :background (c_? (required-field-color (fm-parent self))))
>>
>> where the background depends on the value of the parent's required-
>> field-color slot I never get any background color set. No, the
>> dependency does not cause this - I get the same effect when
>> directly specifying a color ...
>>
>> I then tried to narrow this down and found out that Celtk never
>> passes the background option to Tk via tk-format-now...
>
> make-tk-instance calls tk-format-now with the following string:
>
> entry .msg-workarea.data-entry -width 40 -textvariable .msg-
> workarea.data-entry
>
> Does this imply the :background should appear before the placing
> parameters ??
>
> ...
>
> Frank
More information about the cells-devel
mailing list