The CLIM user manual indicates that the following functions are available...
(window-label window) (window-parent window) (window-children window) (window-inside-height window) (window-inside-width window)
etc...
These don't seem to exist in MCCLIM. The question is are there plans to implement them in the future or are there other functions which replaced them.
Thanks for the help Bill Sauer
"Bill Sauer" bill@volersystems.com writes:
These don't seem to exist in MCCLIM. The question is are there plans to implement them in the future or are there other functions which replaced them.
Are these only found in CLIM 2.2 (ie. the Franz documentation)? If so, there has not yet been a dedicated effort to implement them, but I guess you can say that there are plans to change that. Many CLIM 2.2 functions tend to be rather easy to implement because they are fairly high-level, so if you want to give it a shot, patches would be welcome. Otherwise, they should still be implemented at some point.
On 2/22/07, Bill Sauer bill@volersystems.com wrote:
The CLIM user manual indicates that the following functions are available...
(window-label window)
Interesting, this occurs in the Lispworks CLIM manual but not the ACL CLIM manual (or the CLIM 2.0 spec). An equivalent expression might be (and (typep window 'labelled-gadget-mixin) (gadget-label window)).
(window-parent window) (window-children window)
Window-parent and window-children are identical to sheet-parent and sheet-children. The ACL CLIM manual mentions these are provided for compatibility with CLIM 1.1.
(window-inside-height window) (window-inside-width window)
CLIM 2.0 (and McCLIM) provides pane-viewport-region, which allows you do these things in a more general fashion by operations on the rectangle representing the viewable region of a window, for example (bounding-rectangle-width (pane-viewport-region window)) or (with-bounding-rectangle* (x1 y1 x2 y2) (pane-viewport-region window) ...).
These don't seem to exist in MCCLIM. The question is are there plans to implement them in the future or are there other functions which replaced them.
I don't plan to implement them (despite the effort being roughly equivalent to writing this email), but I wouldn't turn away a reasonable patch.
Hi Andy,
Thank you for the help. I'm not enough of a CLIM user much less an expert to volunter an patch. I think the pane-viewport-region will work just fine for now.
----- Original Message ----- From: "Andy Hefner" ahefner@gmail.com To: "Bill Sauer" bill@volersystems.com Cc: mcclim-devel@common-lisp.net Sent: Friday, February 23, 2007 12:13 PM Subject: Re: [mcclim-devel] window functions
On 2/22/07, Bill Sauer bill@volersystems.com wrote:
The CLIM user manual indicates that the following functions are
available...
(window-label window)
Interesting, this occurs in the Lispworks CLIM manual but not the ACL CLIM manual (or the CLIM 2.0 spec). An equivalent expression might be (and (typep window 'labelled-gadget-mixin) (gadget-label window)).
(window-parent window) (window-children window)
Window-parent and window-children are identical to sheet-parent and sheet-children. The ACL CLIM manual mentions these are provided for compatibility with CLIM 1.1.
(window-inside-height window) (window-inside-width window)
CLIM 2.0 (and McCLIM) provides pane-viewport-region, which allows you do these things in a more general fashion by operations on the rectangle representing the viewable region of a window, for example (bounding-rectangle-width (pane-viewport-region window)) or (with-bounding-rectangle* (x1 y1 x2 y2) (pane-viewport-region window) ...).
These don't seem to exist in MCCLIM. The question is are there plans to implement them in the future or are there other functions which replaced them.
I don't plan to implement them (despite the effort being roughly equivalent to writing this email), but I wouldn't turn away a reasonable patch.