Lisp HUG Maillist Archive

Scrolling text field

Sorry if this is obvious, but I can't seem to find the answer.

I want to create a text field that can hold multiple lines of text, and that gets a vertical scroll bar if the text won't fit.

multi-line-text-input-pane would be fine, but it doesn't scroll.

editor-pane seems to be the only other option, but I don't need all the functionality of the editor or the complexity of buffers.

Any suggestions?

Many thanks,
David Johnson-Davies

+------------------------------------------------------------+
David Johnson-Davies, Human-Computer Interface Ltd
17 Signet Court, Swanns Road, Cambridge, CB5 8LA, England.

Tel: +44 1223 314934, Fax: +44 1223 462562
Email: david@interface.co.uk, Web: http://www.interface.co.uk/
+------------------------------------------------------------+


Re: Scrolling text field

Hi,

Is that what you want ?

(capi:contain (make-instance 'capi:multi-line-text-input-pane :vertical-scroll t))

Cheers,

Sebastien.

Le 16/03/2010 19:20, David Johnson-Davies a écrit :
>
> Sorry if this is obvious, but I can't seem to find the answer.
>
> I want to create a text field that can hold multiple lines of text, and that gets a vertical scroll bar if the text won't fit.
>
> multi-line-text-input-pane would be fine, but it doesn't scroll.
>
> editor-pane seems to be the only other option, but I don't need all the functionality of the editor or the complexity of buffers.
>
> Any suggestions?
>
> Many thanks,
> David Johnson-Davies
>
> +------------------------------------------------------------+
> David Johnson-Davies, Human-Computer Interface Ltd
> 17 Signet Court, Swanns Road, Cambridge, CB5 8LA, England.
>
> Tel: +44 1223 314934, Fax: +44 1223 462562
> Email: david@interface.co.uk, Web: http://www.interface.co.uk/
> +------------------------------------------------------------+
>
>


Re: Scrolling text field

On Tue, Mar 16, 2010 at 2:20 PM, David Johnson-Davies
<david@interface.co.uk> wrote:
> I want to create a text field that can hold multiple lines of text, and that gets a vertical scroll bar if the text won't fit.
>
> multi-line-text-input-pane would be fine, but it doesn't scroll.
> Any suggestions?

Does the following work for you?

(capi:contain
  (make-instance 'capi:multi-line-text-input-pane
                               :vertical-scroll t))

-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/


Updated at: 2020-12-10 08:39 UTC