[mcclim-devel] button size

Andy Hefner ahefner at gmail.com
Wed Mar 27 13:41:47 UTC 2013


>From a quick glance at the push-button-pane code, it looks like Mariano's
suggestion of using x-spacing / y-spacing may work. If not, an alternative
is to define a subclass of push-button-pane with a new compose-space method.

On Wed, Mar 27, 2013 at 8:22 AM, Irène Durand <idurand at labri.fr> wrote:

>  Hello,
>
> In order to give a project to my students using McClim for the graphical
> interface, I am trying to make a square button of a given size.
>
> But I always obtain a default size button the width, height, max-width, ...
> have no effect.
>
> Where could I find some help about that?
>
> Thank you,
> Irène
>
> (defun make-square-pane ()
>   (make-pane
>    'square-button-pane
>    :label ""
>    :width 20
>    :height 20
>    :activate-callback (lambda (x)
>             (setf (gadget-label x) "O"))))
>
>
>
> _______________________________________________
> mcclim-devel mailing list
> mcclim-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/mcclim-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20130327/54251b71/attachment.html>


More information about the mcclim-devel mailing list