Re^2: FVWM: Re: UseStyle

From: Peter Funk <pf_at_artcom0.north.de>
Date: Fri, 10 May 1996 09:04:27 +0200 (MESZ)

Todd Fries:
[...]
tf> Also, to address the question at hand...does m4/cpp preprocessing
tf> already provide the same functionality as UseStyle.
tf>
tf> To some degree. However, you can't use an m4 macro in FvwmTalk,
tf> and an m4 macro isn't quite the same as copying the binary
tf> contents of a structure. An m4 macro couldn't do, for
tf> example:
tf>
tf> Style "a" Color Black/Red
tf> Style "b" UseStyle a
tf> Style "a" NoTitle
tf>
tf> To jump the fence, so to speak....however....UseStyle was
tf> originally intended to be 'macro-like' and what better way
tf> to do something 'like' a macro than to use a macro itself?
tf>
tf> What does anybody else think?

The 'UseStyle' you invented provides the concept of "inheritance",
something which can't be accomplished by a macro. For example:

 Style "MyDefaults" Color Black/White, Title, Icon unknown.xpm, HandleWidth 3
 Style "b" UseStyle MyDefaults, Color White/Blue
 Style "c" UseStyle MyDefaults, Icon foobar.xpm
 Style "MySticky" UseStyle MyDefaults, Sticky, NoTitle, HandleWidth 1

Regards, Peter
--
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany
office: +49 421 2041925 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen)
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
--
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 Sat May 11 1996 - 03:15:47 BST

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