On 21 May 2002 15:11:53 +0200, Marcus Lundblad wrote:
> 
> > Anyway, there is a much simpler solution for what you
> > want to achieve.  Take a look at Q 7.12 from the FAQ:
> > 
> >      AddToFunc ToggleFvwmConsole
> >      + I None (FvwmConsole) Module FvwmConsole
> >      + I Next (CurrentPage Visible FvwmConsole) Close
> >      + I Next (FvwmConsole) MoveToDesk
> >      + I Next (FvwmConsole) MoveToPage
> >      + I Next (FvwmConsole) Raise
> > 
> >      AddToMenu <some menu>
> >      + "toggle FvwmConsole" Function ToggleFvwmConsole
> > 
> >    Or for a toggling Netscape button:
> > 
> >      AddToFunc ToggleNetscape
> >      + I None (Navigator) Exec exec netscape
> >      + I All (Navigator) Close
> 
> I added a function like this:
> 
> AddToFunc TogglePager
> +	I	None (FvwmPager) StartPager
> +	I	All (FvwmPager) Close
The FAQ examples are not quite universal, I will improve them.
Your function should be:
AddToFunc TogglePager
+     I       None (FvwmPager, CirculateHit) StartPager
+     I       Next (FvwmPager, CirculateHit) Close
Regards,
Mikhael.
--
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 Tue May 21 2002 - 09:16:30 BST