Re: FVWM: win like buttons

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Thu, 30 Aug 2001 11:12:16 +0000

On 29 Aug 2001 21:15:25 +0200, Johannes Zellner wrote:
>
> I'd like to have the windows like right button styles:
>
> 1) I'm sure someone has created the 'vector' layouts yet.
> Where can I find them ?

It is not possible to create Vector definition for this kind of buttons.
In the future Vector may support drawing using filled shapes, currently
only lines are supported.

It is easy to create the buttons that you want if you use ready images.
You may get images mini.winXX*.xpm from fvwm_images.tgz on fvwm.org.
fvwm-themes contains even more WinXX related button pixmaps.

> 2) Is there a means to modify the maximize button (like in windows)
> to show, if a window is maximized or not ?

Yes, it's possible to use different buttons in normal and maximized states.

Now I see that samples system.fvwm2rc-sample-95 and DecorWin95 shipped
with fvwm-2.4.0 don't use this feature.

This is however used in fvwm-themes, take a look at buttons_at_redmond98:

  http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/fvwm-themes/fvwm-themes/themes/redmond98/buttons?rev=1.8&content-type=text/plain

I hope you get an idea (use ButtonStyle instead of AddButtonStyle).

> related: Is there a function to remove title, border, handles ...
> if a window is maximized ?

This is not done on Maximize, but you may write needed functions yourself
and use them instead of Maximize. This is from bindings in fvwm-themes:

  DestroyFunc FuncFvwmMaximizeFullScreen
  AddToFunc FuncFvwmMaximizeFullScreen
  + I Style $n NoTitle, NoHandles, BorderWidth 0
  + I WindowId "$w" UpdateStyles
  + I WindowId "$w" Maximize true

  DestroyFunc FuncFvwmUnmaximizeFullScreen
  AddToFunc FuncFvwmUnmaximizeFullScreen
  + I WindowId "$w" Maximize false
  + I Style $n Title, Handles, BorderWidth 5

  # press Shift-Ctrl-F11 to maximize, Shift-Ctrl-F12 to unmaximize
  Key F11 A SC Pick FuncFvwmMaximizeFullScreen
  Key F12 A SC Pick FuncFvwmUnmaximizeFullScreen

This does not work with fvwm-2.2.x versions. You should upgrade if needed.

Regards,
Mikhael.
--
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 Thu Aug 30 2001 - 06:30:10 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST