Re: FVWM: I need 'else' in a function

From: <sa_at_space.itacs.to>
Date: Sat, 3 Jun 2000 04:38:47 -0600

On Fri, Jun 02, 2000 at 05:35:00PM -0600, sa_at_space.itacs.to wrote:
> Hello Everone,
>
> I am trying to make a fvwm function, and I need some guidance.
> I want it to raise and move my clock to the center of the
> screen, then move it back when I run the function again. This
>
> DestroyFunc SeeHideFunc
> AddToFunc SeeHideFunc
> + I All ($0, "!Sticky") HideFunc $0
> + I All ($0, "Sticky") SeeFunc $0
>
...
> The problem is: SeeHideFunc executes HideFunc AND SeeFunc. Is there a
> way to only execute one? Or is there a better way do write my function?
>
ok I made it work, here it is FYI.

DestroyFunc SeeHideFunc
AddToFunc SeeHideFunc
+ I All (asclock, Sticky) SeeFunc
+ I All (asclock, !Sticky) HideFunc
+ I read $[HOME]/.fvwm/FvwmHideFunc

# ~/.fvwm/FvwmHideFunc contains the same as below

DestroyFunc HideFunc
AddToFunc HideFunc
+ I All (asclock) Layer 0 2
+ I All (asclock) AnimatedMove -0 -0
+ I All (asclock) Stick On

DestroyFunc SeeFunc
AddToFunc SeeFunc
+ I All (asclock) Layer 0 10
+ I All (asclock) AnimatedMove +44 +44
+ I All (asclock) Stick Off
+ I DestroyFunc HideFunc
+ I AddToFunc HideFunc I Nop

:-)
sa
--
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 Sat Jun 03 2000 - 05:38:39 BST

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