Lisp HUG Maillist Archive

[CAPI] Freezing geometry

  Hello,

yet another question: I have an interface with several nested row or
column layouts. For simplicity, suppose that the interface has one
toplevel row layout with two sub-layouts inside, next to each other.

I would like to freeze the geometry of the first sub-layout (the one on
the left) to what it gets when the interface is created, so that if I
resize the toplevel window, only the second sub-layout (the one on the
right) gets resized.

I can't seem to make it work. I have tried something like the following
but it doesn't work:

(defmethod interface-display :before ((interface interface))
  ...
  (set-hint-table (sub-layout-1 interface)
    `(:visible-min-width ,(simple-pane-visible-width (sub-layout-1 interface))
      :visivble-max-width ,(simple-pane-visible-width (sub-layout--1 interface))))
  ...)

Any help appreciated.

-- 
Resistance is futile. You will be jazzimilated.

Jazz site:   http://www.didierverna.com
Other sites: http://www.didierverna.info

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

Re: [CAPI] Freezing geometry

Hi,

Not sure if I understand what exactly do you want, but in order to fix the size of a pane to prevent resizing the following attributes works for me for example:
:min-width 600
:min-height 600

Br,
/Alexey

On Thu, Apr 2, 2020 at 8:52 PM Didier Verna <didier@lrde.epita.fr> wrote:

  Hello,

yet another question: I have an interface with several nested row or
column layouts. For simplicity, suppose that the interface has one
toplevel row layout with two sub-layouts inside, next to each other.

I would like to freeze the geometry of the first sub-layout (the one on
the left) to what it gets when the interface is created, so that if I
resize the toplevel window, only the second sub-layout (the one on the
right) gets resized.

I can't seem to make it work. I have tried something like the following
but it doesn't work:

(defmethod interface-display :before ((interface interface))
  ...
  (set-hint-table (sub-layout-1 interface)
    `(:visible-min-width ,(simple-pane-visible-width (sub-layout-1 interface))
      :visivble-max-width ,(simple-pane-visible-width (sub-layout--1 interface))))
  ...)

Any help appreciated.

--
Resistance is futile. You will be jazzimilated.

Jazz site:   http://www.didierverna.com
Other sites: http://www.didierverna.info

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

Re: [CAPI] Freezing geometry

I wrote:

> I can't seem to make it work. I have tried something like the
> following but it doesn't work:

  Well, it does this morning, never mind.

In any case, I've been asking many questions about CAPI lately, as I
walk my way in it for the first time, and I wanted to thank everyone
again for the support. CAPI is quite cool.

-- 
Resistance is futile. You will be jazzimilated.

Jazz site:   http://www.didierverna.com
Other sites: http://www.didierverna.info

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

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