Re: FVWM: Changing Button Colors in FVWM2

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 10 Dec 2001 13:25:56 +0100

On Mon, Dec 10, 2001 at 01:15:30PM +0100, Bernhard Schneck wrote:
> Does anybody know an answer to the following problem concerning FVWM2,
> version 2.4:
>
> I have a number of desks on my physical screen and I decided to give
> each desk a different background color. This works well with the
> *FvwmBackerCommand statement in my .fvwm2rc file.
>
> Now somebody in our team wants that the buttons created by FvwmButtons
> have different background colors too - according to the desk, which is
> currently shown on the screen. Up to now I did not succeed in changing
> the button color when changing the desk. What I tried is a statement of
> the following kind:
>
> *FvwmBackerCommand (Desk <number>) *FvwmButtonsBack <color>
>
> but it seems that FvwmBacker does not want to communicate with
> FvwmButtons (at least not in the way, which I expected that it would
> do).
>
> I also tried "*FvwmButtonsColorset <colorset>" instead of
> "*FvwmButtonsBack <color>", but that did not work either (although
> FvwmTheme was started).

Modules usually don't react to configuration changes after they
have been started. You can still get what you want with colour
sets. Just define a colour set to be used with FvwmButtons as you
already did:

  # colour set for use with FvwmButtons
  *FvwmThemeColorset 6 fg red, bg green

and then use the SendToModule command to inform FvwmTheme and
thus FvwmButtons about the colour changes:

  *FvwmBackerCommand (Desk <number>) SendToModule FvwmTheme Colorset 6 fg blue, bg yellow

Bye

Dominik ^_^ ^_^

-- 
Dominik Vogt, email: d.vogt_at_lifebits.de
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
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 10 2001 - 11:19:50 GMT

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