Re: bitmap buttons



Skip Montanaro wrote:
>     John> It's easy :-) make a button with gtk_button_new(), then add a
>     John> gtk_pixmap to it with gtk_container_add().
> 
> Related question...  If I add a 10x10 pixel wide pixmap to a button, will
> the button request a size of 10x10 or is there some implicit border?  Just
> in case, hypothetically I wanted to tile a region with buttons containing
> pixmaps... ;-)

Hi Skip, no, I think there's a 1 pixel non-removable border (in gtk-1.2.x
anyway). You'd need to write your own widget for a tiled clickable area. I guess
subclassing off DrawingArea would be the easiest (100 lines of C?).

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]