Re: FVWM: Apply an Style option to an existing window

From: Uwe Pross <uwe.pross_at_e-technik.tu-chemnitz.de>
Date: Thu, 27 Jun 2002 13:11:49 +0200

On June 27, 2002 at 10:05 +0000, Mikhael Goikhman wrote:
>
> Theoretically currently you can't apply Style to only one window,
> but practically you may get acceptable results. Add "$n":
>
> + "Skip this window when using (Alt-Tab)" Current Style $n CirculateSkip
>

Thanks. The lines.

DestroyMenu windowops
AddToMenu windowops "Window menu" Title
 -------------------------------<snip>-------------------------------
 + "Enable (Alt-Tab)%mini.keyboard.xpm%" Current Style $n CirculateHit
 + "Disable (Alt-Tab)%mini.keyboard.xpm%" Current Style $n CirculateSkip
 -------------------------------<snip>-------------------------------

do what I want. I will see how it goes if there are more windows
having the same name. But for the moment it does exactly what I was
looking for.
 
Thanks for the hint.

> > I would like to do same with other styles like Foreground, Background,
> > Hilight*, ...
>
> Please use colorsets instead. Then you just change colorset dynamically
> without a need to change any Style.

I use colorsets. The problem with colorsets is that you need to define
them before you can use them. For example if you want one particular
window to appear in red color and another one to appear in green
colorsets might be not that suitable, since you need one colorset for
each color you want to use.

Uwe
-- 
+--------------------------------------------------
| Uwe Pross 
| mail : mailto:uwe.pross_at_e-technik.tu-chemnitz.de
| www  : http://www.tu-chemnitz.de/~uwp
+--------------------------------------------------
--
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 Jun 27 2002 - 06:12:28 BST

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