Subject: SwallowExec in FvwmScript

From: [email-masked]
Date: Wed, 26 Apr 2000 22:51:02 -0500 (CDT)

Hey guys. I'm trying to do a "tab notebook-style"
PushButton/SwallowExec-based FvwmScript, and to initially HideWidget
the external SwallowExec widgets, but it seems that when you have a
SwallowExec widget, it always executes it, and displays it, regardless
of HideWidget id.

In the long run, I'm basically trying to make a "notebook" style tab
system, using button widgets, and have the "Apply" "Reset" etc..
buttons to SendToScript and ReceiveFromScript, or have those buttons in
the Swallowed scripts. Don't know yet.

But here's the problematic code below:

---[FvwmThemerConfig Begin]---
WindowTitle {Fvwm-Themer Configuration} WindowSize 610 360	 #
Taille Font            -adobe-helvetica-bold-r-*-*-12-*

Init
Begin
  HideWidget 30

  Set $FDIR=(GetOutput  {echo "$FVWM_USERDIR"} 1 -1)
  Set $FILE=(GetScriptArgument 1)
  If $FILE=={} Then
    Set $FILE={.FvwmBaseConfig}
  Set $FILE=$FDIR {/} $FILE
  Set $DATADIR=(GetOutput  {fvwm-config -D} 1 -1)
End

Widget 1
Property
  Size 47 20
  Position 1 1
  Type PushButton
  Title {Base}
Main
  Case message of
    SingleClic :
    Begin
    End
End

Widget 2
Property
  Size 30 20
  Position 48 1
  Type PushButton
  Title {Sound}
Main
  Case message of
    SingleClic :
    Begin
      ShowWidget 30
    End
End

Widget 10
Property
  Size 590 315
  Position 10 35
  Type Rectangle
Main
  Case message of
    SingleClic :
    Begin
    End
End

Widget 30
Property
 Size 590 315
 Position 10 35
 Type SwallowExec
 Title {Fvwm-Themer Sound Setup}
 Value 1
 SwallowExec {FvwmScript ScriptThemerConfigSound}
Main
 Case message of
  SingleClic :
  Begin
  End
End
---[FvwmThemerConfig End]---

---[FvwmThemerConfigSound Begin]---
WindowTitle {Fvwm-Themer Sound Setup}
WindowSize 590 315   
Font		-adobe-helvetica-bold-r-*-*-12-*

Init
Begin
End

Widget 1
Property
  Position 10 10
  Type ItemDraw
  Title {Just testing...}
Main
  Case message of
    SingleClic :
    Begin
    End
End
---[FvwmThemerConfigSound End]---

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]