Hmmm, on my XP machine output-pane has a default visible-border
whilst simple-pane has none. But firing up my ancient iMac it seems that on OS X the CAPI supplies a default border even for a simple-pane. So this looks like it's platform-specific. Unfortunately I know next to nothing about Cocoa or graphics on OS X, so it's unlikely that I can be particularly helpful, but perhaps googling NSBorderlessWindowMask might provide a clue?
Subject: Re: make-container padding pane
From: massung@gmail.com
Date: Tue, 4 Oct 2011 17:23:30 -0600
CC: lisp-hug@lispworks.com
To: relativeflux@hotmail.co.uk
Chris,
I don't need to. Note: this is OS X, which might make a difference. Just open up a fresh LW and do the following:
(contain (make-instance 'output-pane :max-width 200 :max-height 200))
The inset/extra padding is immediately obvious. I've tried :internal-border and a number of other things. If I inspect the container, some things I see that are suspicious:
parent interface --> layout --> geometry cache --> x, y == 4, 8
I assume that's it, but I don't see an obvious way to make those 0,0. I'm still relatively new to CAPI, so I'm not sure if there's something obvious I should be looking at?
Jeff M.
On Oct 4, 2011, at 5:01 PM, Christopher Melen wrote:
Hi Jeff,
I can't think why that would ever happen, unless you have :internal-border set to a value greater than 0. Could you post some example code?
Best,
Chris M
> From:
massung@gmail.com> Subject: make-container padding pane
> Date: Tue, 4 Oct 2011 16:32:42 -0600
> To:
lisp-hug@lispworks.com>
>
> Are there any parameters I can pass to #'make-container (which I assume I can use in #'contain) that will cause the pane passed in to not pad out?
>
> I have a pane that I've created which has it's visible-min/max-width/heights set to very exact values, but when I #'contain it, the resulting pane is inset in the container by ~3-4 pixels on every side. I'd very much like to make this padding 0 pixels.
>
> Thanks!
>
> Jeff M.