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

Jonathan Heusser jonny at drugphish.ch
Fri May 13 21:41:07 UTC 2005


Forgive my very newbie question.
I'm trying to change a text-buffer to the value of an entry with a click
on a button.

My button code looks like this:
(mk-button :md-name :b :label "send" :on-clicked
                (callback (w e d)
                  (setf (buffer (upper self buttons))
                    (md-value (fm-other :entry))))

After pressing enter on this button I got the error that the buffer has
to be initialized as inputp.
Then I tried to initialize it as follows (it was just a guess):
 (buffer :accessor buffer :initarg :buffer
       :initform (c-input () (mk-text-buffer
              :text (format nil "bla"))

But it's still not working as it should. Either my setf on the buffer is
wrong or this initialisation.
Can you lead me on the right track?

Thanks
Jonathan Heusser

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





More information about the cells-gtk-devel mailing list