Lisp HUG Maillist Archive

Layout text-input-panes

Hello!

Maybe I overlooked it in the CAPI User Guide, but is there a way to layout two or more text-input-panes with titles?
I have two text-input-panes together in a column-layout but the input fields are not aligned because of the titles.

Is there a easy way to align them? And is there maybe a good website or book with more examples how to build GUIs in LispWorks?

regards,
Phil

Re: Layout text-input-panes

Hi Phil,

The easiest way IMO is to use a grid-layout instead of a column-layout. Check out the documentation on grid-layout, especially the initargs :columns and :has-title-column-p

Regards
Erik



15 aug 2013 kl. 11:45 skrev Philipp Bach:

> Hello!
> 
> Maybe I overlooked it in the CAPI User Guide, but is there a way to layout two or more text-input-panes with titles?
> I have two text-input-panes together in a column-layout but the input fields are not aligned because of the titles.
> 
> Is there a easy way to align them? And is there maybe a good website or book with more examples how to build GUIs in LispWorks?
> 
> regards,
> Phil


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Layout text-input-panes

Phil,

> Maybe I overlooked it in the CAPI User Guide, but is there a way to layout two or more text-input-panes with titles?
> I have two text-input-panes together in a column-layout but the input fields are not aligned because of the titles.

Use :title-args. For example:

:title-args '(:external-min-width 72)

There's an example here:

http://capi.plasticki.com/show?1MG

Regards,
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/
+------------------------------------------------------------+


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Layout text-input-panes

Thank you both a lot :)

I use the grid-layout with title-panes and input-panes now.

regards,
Phil


On Thu, Aug 15, 2013 at 10:45 PM, David Johnson-Davies <david@interface.co.uk> wrote:
Phil,

> Maybe I overlooked it in the CAPI User Guide, but is there a way to layout two or more text-input-panes with titles?
> I have two text-input-panes together in a column-layout but the input fields are not aligned because of the titles.

Use :title-args. For example:

:title-args '(:external-min-width 72)

There's an example here:

http://capi.plasticki.com/show?1MG

Regards,
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/
+------------------------------------------------------------+


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