Peter Herth wrote:
Hi Jeff,
the problem lies in the fact that the scrolled-text is only a container around the contained textbox widget. So for configuration, you need to configure that widget rather than the scrolled-textbox. You can access it via its textbox slot. So I would write something like: (let* ((textframe (make-instance 'frame)) (textbox (make-instance 'scrolled-text :master textframe)) (text (textbox textbox)))
(configure text :width 20 :height 30 :background :white)
once you got the scrolled-text widget packet, you are really only interested in its contained textbox.
HTH, Peter _______________________________________________ ltk-user site list ltk-user@common-lisp.net http://common-lisp.net/mailman/listinfo/ltk-user
That solved that problem. Thank you.
What is the format for specifying position with the SEE function? I've tried
(see textbox '(0 0)) as the only obvious thing I could think of, but it doesn't like that.
--Jeff
On 8/17/07, Cunningham, Jeff jeffrey.k.cunningham@boeing.com wrote:
What is the format for specifying position with the SEE function? I've tried
(see textbox '(0 0)) as the only obvious thing I could think of, but it doesn't like that.
The argument passed to see is currently given to Tk without any processing - so you have to give it in an (unlispy) style, either like "line.char" so in your case "1.0" (line numbering starts with 1) or the word "end" for the end of the text.
Peter