> On 09 Dec 2002 09:10:08 +0800, dion king wrote:
> > I want to use a pixmap file in a button and the size of
> > button is fixed.
> > However the icon is a little bigger so only a part of it can
> > be show on the button.
> > Then how to zoom it ?
>
> I suppose you speak about "ButtonStyle n Pixmap /your/image.xpm"
> and not "ButtonStyle n MiniIcon".
>
> 1) You may enlarge the TitleStyle Height value for the image to fit.
>
> 2) You may zoom and save the image using gimp or other image editor.
>
> 3) In recent 2.5.5+ you may zoom an image if you use colorsets.
>
> Colorset 9 AspectPixmap /your/image.png
> ButtonStyle 7 Colorset 9
>
> # these 2 are not needed for you, just to make button 7 visible
> Style * Button 7
> Mouse 1 7 A Iconify
>
> Regards,
> Mikhael.
Thank you for your help :)
I want to use image in the buttons of module FvwmButtons,
not in the topbar of windows.
I configured the FvwmButtons like following:
Font 5x7
Back rgb:90/80/90
Fore black
Frame 1
# 15x15 pixels per button, 4x4 pixels for the frame
Geometry 904x49+0-0
Rows 3
Columns 60
BoxSize fixed
Padding 1 1
# first row of buttons from left to right:
(2x2+0+0, Icon mozillasmall.xpm, Action `Exec mozilla`)
(2x2+2+0, Icon rxvt.xpm, Action `Exec exec rxvt`)
............
But rxvt.xpm is too bigger to show on the 2x2 button.
Some other xpm impages are also too bigger.
Of course, I can zoom and save the image using gimp.
But I am too lazy to do it for every big image :)
Is there other way to solve it?
dion
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Dec 09 2002 - 19:14:44 GMT