Re: FVWM: taskbar in fvwm2

From: Brady Montz <bradym_at_cs.arizona.edu>
Date: 25 Jun 1997 09:59:47 -0700

Kai Grossjohann <grossjohann_at_charly.cs.uni-dortmund.de> writes:

> >>>>> Lansing D Pickup writes:
>
> Lansing> How did you get FvwmIconMan to display icons horizontally?
>
> ,-----
> | *FvwmIconMan*managergeometry 1x5
> | *FvwmIconMan*buttongeometry =210x21
> `-----
>
> The managergeometry option tells FvwmIconMan to make 5 buttons
> verticall and 1 horizontally. When the sixth button is created,
> FvwmIconMan divides them in two columns. When the 11th button is
> created, there are three columns. And so on.
>
> kai

Here's how it works. It's rather confusing, and I have trouble remembering how
it works sometimes, but it is very efficient:

buttongeometry specifies the initial geometry of each button. If y=0, then
FvwmIconMan set it according to the font size.

managergeometry specifies the initial size of the manager window, in units of
buttons. There are three cases:

height=0, width > 0: manager has "width" columns, and grows the manager
vertically as needed. If there are fewer than "width" buttons, then the
buttons are expanded to fill the horizontal space. There will never be more
than "width" columns.

width=0, height > 0: manager has "height" rows, and grows horizontally as
needed. Since buttons don't expand vertically, the buttons will always keep
the buttongeometry specified in the .fvw2rc.

height > 0, width > 0: the manager window is fixed at exactly that size (in
pixels). Buttons will be expanded/shrunk horizonatally as much as needed to
fill the width, but are never expanded vertically.

It won't always be the case that the entire manager window is filled by
buttons. So, in that case, if you are using the shape extension, the window is
cropped to fit the buttons. If you are not using the shape extension, then the
remainder is blank.

The way I think of the managergeometry is that it specifies a constraint on
the maximum number of rows and/or columns. If there is only one constraint,
this gives horizontal or vertical growth. If there are two contraints, then I
could either just cap the number of buttons to width*height, or shrink the
buttons as necessary. The second is obviously the best thing to do, so that's
what it does.

Final note: whether the window grows to the left or right; or up rather than
down depends on the window gravity, which is determined by the sign of the x
and y coordinates given in managergeometry.

There you go.

-- 
 Brady Montz
 bradym_at_cs.arizona.edu
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Jun 25 1997 - 12:00:22 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST