[cells-gtk-devel] making a text-buffer inputp

Jonathan Heusser jonny at drugphish.ch
Fri May 13 22:00:16 UTC 2005


> 1. Can you define "still not working"? Runtime error? Incorrect
> result? No result?

Sure. With the mentioned buffer initialization an the following button form:
(mk-button :md-name :b :label "send" :on-clicked
                (callback (w e d)
                  (incf (nclics (upper self buttons)))
                  (setf (buffer (upper self buttons))
                    (fm-other :entry)))))))

It doesn't drop into the debugger but nothing happens at all. I'm just
pressing the button and no reaction.
Although the "nclics" gets increased (which I have displayed on a label).

With this button form:
(mk-button :md-name :b :label "send" :on-clicked
                (callback (w e d)
                  (incf (nclics (upper self buttons)))
                  (setf (buffer (upper self buttons))
                    (md-value (fm-other :entry))))))))

I get the following error when clicking on the button:
No matching method for the generic function
#<STANDARD-GENERIC-FUNCTION CELLS::ADOPT-CT (1) {589712D1}>, when called
with
arguments ("test").
   [Condition of type PCL::NO-APPLICABLE-METHOD-ERROR]

> 2. Are you using the same SETF form?

See above.

> 3. Should buffer just be a string? I do not have Cells-gtk in front of
> me. If not, is the md-value of the :entry widget a string or a
> text-buffer instance?

yes just a string.

Thanks
Jonathan

-- 
ACF8 4AC4 E7E4 1C72 44C5  4E55 2CF0 79E9 84B6 4AD3




More information about the cells-gtk-devel mailing list