Lisp HUG Maillist Archive

Trivial, but annoying CAPI issue...

I know I can make myself a macro (which I have done), but I was 
wondering if there was something built-in that I haven't seen in the 
documentation. If I wanted to make a fixed-size interface pane, I find 
myself doing the following:

(make-instance 'pane
   :visible-min-width width
   :visible-max-width width
   :visible-min-height height
   :visible-max-height height)

Is there a quick way of just letting me specify :width, :height, and a 
:fixed-size or :resizable nil or something similar?

Jeff M.

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


Re: Trivial, but annoying CAPI issue...

Hi Jeff,

In my interface :default-initargs, I would use T for :visible-max-width and :visible-max-height. That means they will have the same value as :visible-max-width and :visible-max-height.

See http://www.lispworks.com/documentation/lw50/CAPRM/html/capiref-102.htm

But that is only one step towards what you asked, in which case I would make myself a (super) class for fixed size interfaces. 

--
Cam

On 28 juil. 2013, at 16:10, Jeffrey Massung <massung@gmail.com> wrote:


I know I can make myself a macro (which I have done), but I was wondering if there was something built-in that I haven't seen in the documentation. If I wanted to make a fixed-size interface pane, I find myself doing the following:

(make-instance 'pane
 :visible-min-width width
 :visible-max-width width
 :visible-min-height height
 :visible-max-height height)

Is there a quick way of just letting me specify :width, :height, and a :fixed-size or :resizable nil or something similar?

Jeff M.

_______________________________________________
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:35 UTC