<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#333333">
Hi;
<br>
<br>
I'm new to both Ltk and to this list. I'm working on a prototype
application which includes a text widget which I'd like to be able to
scroll. It looks like the "scrolled-text" widget should work, but it
doesn't behave the same as other widget with regards to various
parameters. Here is an example that demonstrates:
<br>
<br>
(with-ltk ()
<br>
(let* ((textframe (make-instance 'frame))
<br>
(textbox (make-instance 'scrolled-text :master textframe)))
<br>
;; (textbox (make-instance 'text :master textframe)))
<br>
<br>
(configure textbox :width 20 :height 30 :background :white)
<br>
(pack textbox :expand t :fill :both)
<br>
(pack textframe :expand t :fill :both)))
<br>
<br>
If you evaluate this with the 'text widget (commented out above) it is
initially sized as specified in the configure and has the white
background I want.
<br>
<br>
But if you evaluate it with the 'scrolled-text widget, the size seems
to be determined arbitrarily, and the background remains gray.
Actually, the tiny lower-right box where the scrollbars don't quite
meet turns white, so it's doing something.
<br>
<br>
Is there a way to get a scrolled-text box with a white background and
specified size?
<br>
<br>
I did google the mailing list without finding any previous discussion
of this. Any advice would be appreciated.
<br>
<br>
--Jeff
<br>
</body>
</html>