Re: FVWM: Submenu possiblities

From: Dan Espen <dane_at_dane-2.cc.telcordia.com>
Date: Mon, 17 Dec 2001 14:00:07 -0500

Charles Edstrom <immortalize_at_yahoo.com> writes:
> After reading the man pages and I did a search on the archives but did not
> find what I was looking for so maybe someone can suggest something.
>
> I have a device attached that takes on and off commands. The only
> difference is one small parameter that would change, otherwise the rest of
> the command is the same. I want to setup a menu with a submenu that
> contains just on and off as the options. But from the main menu it would
> take several options. Heres an example
>
> Living Room
> Bed Room
> Computer Room
>
> Then I would like to pass one parameter to a submenu where it would give
> me the on or off option. I would like to do something like 'popup
> switchdevice [deviceid]' for each of the items above. Then the
> switchdevice menu would have two items as I described. I hope I made
> sense.
>
> I looked at the two options, missingpopupmenu and dynamicpopupmenu but
> neither seems simple enough for my need. So any ideas would help. Thanks.

I don't understand at all, so I can only offer this general advice.

You get the most flexibility out of FVWM by using PipeRead.
PipeRead invokes a shell and the output is used as FVWM commands.

The shell can do things like echo the commands to destroy the
menu, redefine it, and then pop it up.

There are some good examples in the utils directory and the FAQ.

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
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 Mon Dec 17 2001 - 13:00:51 GMT

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