Discussion:
FVWM: Positioning a menu
Jamie Griffin
2014-08-28 08:53:16 UTC
Permalink
I'm having trouble getting a menu to appear in the right place.

I've got a taskbar at the bottom of the screen and a start button
(FvwmButtons) which when pressed is supposed to open a menu right above
it, like Windows '98 style. The taskbar is 25 pixels in height and i'd
like the menu to overlap the top of it by one pixel, giving the
appearance its part of it. So, appearing the very far left of the
screen, 24 pixels from the bottom. +0-24 in X geometry.

Everything i've tried just makes it open on top of the taskbar, i've
even plugged in random stuff in frustration but nothing seems to make
the menu open in a different position. Can anybody explain to me how I
can get this to work?
Thomas Adam
2014-08-28 09:18:32 UTC
Permalink
On Thu, Aug 28, 2014 at 09:53:16AM +0100, Jamie Griffin wrote:
> I'm having trouble getting a menu to appear in the right place.
>
> I've got a taskbar at the bottom of the screen and a start button
> (FvwmButtons) which when pressed is supposed to open a menu right above it,
> like Windows '98 style. The taskbar is 25 pixels in height and i'd like the
> menu to overlap the top of it by one pixel, giving the appearance its part
> of it. So, appearing the very far left of the screen, 24 pixels from the
> bottom. +0-24 in X geometry.

For example:

Menu SomeMenuName Rectangle +0-24 0 0m

The thing to note here is the "Rectangle" option.

-- Thomas Adam
Jamie Griffin
2014-08-28 10:16:06 UTC
Permalink
On 28/08/2014 10:18, Thomas Adam wrote:
> On Thu, Aug 28, 2014 at 09:53:16AM +0100, Jamie Griffin wrote:
>> I'm having trouble getting a menu to appear in the right place.
>>
>> I've got a taskbar at the bottom of the screen and a start button
>> (FvwmButtons) which when pressed is supposed to open a menu right above it,
>> like Windows '98 style. The taskbar is 25 pixels in height and i'd like the
>> menu to overlap the top of it by one pixel, giving the appearance its part
>> of it. So, appearing the very far left of the screen, 24 pixels from the
>> bottom. +0-24 in X geometry.
> For example:
>
> Menu SomeMenuName Rectangle +0-24 0 0m
>
> The thing to note here is the "Rectangle" option.
>
> -- Thomas Adam
Thanks Thomas,

I've tried that and it too does not work as intended. This is the
invocation line in .fvwm/config:

[ ... ]
*Panel: (1x1, Frame 1, Padding 0 0, Icon mini/mini.start.xpm, Action
(Mouse 1) 'Menu FvwmRootMenu Rectangle +0-24 0 0m')
[ ... ]

Can you see anything in that line that i've done incorrectly - that
might be the issue?

The only other thing that came to mind -- which is probably nothing to
do with it whatsoever - is the Style options i've given to the panel,
i.e. the focusing policy?

This is what I've got for that:

Style "Panel" NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
StaysOnBottom, FixedPosition, FixedSize, !Iconifiable, ClickToFocus,
CirculateSkip
Dominik Vogt
2014-08-28 11:50:21 UTC
Permalink
> >> I've got a taskbar at the bottom of the screen and a start button
> >> (FvwmButtons) which when pressed is supposed to open a menu right above it,
> >> like Windows '98 style. The taskbar is 25 pixels in height and i'd like the
> >> menu to overlap the top of it by one pixel, giving the appearance its part
> >> of it. So, appearing the very far left of the screen, 24 pixels from the
> >> bottom. +0-24 in X geometry.
> > For example:
> >
> > Menu SomeMenuName Rectangle +0-24 0 0m
> >
> > The thing to note here is the "Rectangle" option.
> >
> > -- Thomas Adam
> Thanks Thomas,
>
> I've tried that and it too does not work as intended. This is the
> invocation line in .fvwm/config:
>
> [ ... ]
> *Panel: (1x1, Frame 1, Padding 0 0, Icon mini/mini.start.xpm, Action
> (Mouse 1) 'Menu FvwmRootMenu Rectangle +0-24 0 0m')
> [ ... ]

+0-0 0 -100m-24p

or

1x24+0-0 0 -100m

The position in the context ractangle seems to be broken when using
negative values, or I don't understand my own documenation anymore.
Something to clean up in the future.

Ciao

Dominik ^_^ ^_^

--

Dominik Vogt
Dominik Vogt
2014-08-28 19:08:03 UTC
Permalink
On Thu, Aug 28, 2014 at 01:50:21PM +0200, Dominik Vogt wrote:
> The position in the context ractangle seems to be broken when using
> negative values, or I don't understand my own documenation anymore.
> Something to clean up in the future.

Fixed.

Ciao

Dominik ^_^ ^_^

--

Dominik Vogt
Jamie Griffin
2014-08-28 10:32:29 UTC
Permalink
On 28/08/2014 10:18, Thomas Adam wrote:
> On Thu, Aug 28, 2014 at 09:53:16AM +0100, Jamie Griffin wrote:
>> I'm having trouble getting a menu to appear in the right place.
>>
>> I've got a taskbar at the bottom of the screen and a start button
>> (FvwmButtons) which when pressed is supposed to open a menu right above it,
>> like Windows '98 style. The taskbar is 25 pixels in height and i'd like the
>> menu to overlap the top of it by one pixel, giving the appearance its part
>> of it. So, appearing the very far left of the screen, 24 pixels from the
>> bottom. +0-24 in X geometry.
> For example:
>
> Menu SomeMenuName Rectangle +0-24 0 0m
>
> The thing to note here is the "Rectangle" option.
>
> -- Thomas Adam
Hey!, just out of interest, i've got it. I know it's a really simple
thing but it eluded me (which isn't difficult). This, however, does
position it correctly:

rectangle $widthx$height+$left+$***@g o+50 -100m
Loading...