Lisp HUG Maillist Archive

width of capi:display-pane

Unable to parse email body. Email id is 3686

Re: width of capi:display-pane

At 5:19 PM +0100 4/1/05, Nick Levine wrote:
>Hi.
>
>I want to know how wide a capi:display-pane is, so that I can figure
>out how much text I can draw before moving onto a newline.
>
>capi:simple-pane-visible-width appears to be a few pixels over. I set
>:visible-border to nil but maybe there's still some boundary region
>into which you can't draw text?
>
>Does anyone know how to get your hands on the actual drawable width?
>At present, I'm taking the simple-pane-visible-width and subtracting
>10 pixels. It works, but it's a hack and if there's a better way then
>I'd rather use that.

What's wrong with using CAPI:WRAP-TEXT-FOR-PANE?

   - Gary


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