Re: FVWM: parameter $d in form

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 2 Oct 2002 16:32:17 +0000

On 02 Oct 2002 10:51:54 -0400, Victor Eijkhout wrote:
>
> I have a form to rename a desktop:
> Module FvwmForm NameDesk
>
> defined as
>
> # name this desktop
> DestroyModuleConfig NameDesk: *
> *NameDesk: WarpPointer
> *NameDesk: Line left
> *NameDesk: Text "Name this desktop:"
> *NameDesk: Line expand
> *NameDesk: Input deskname 20 ""
> *NameDesk: Button quit "OK" ^M
> *NameDesk: Command Echo $d "$(deskname)"
> *NameDesk: Command *FvwmPager: Label $d "$(deskname)"
> *NameDesk: Command RestartPager
> *NameDesk: Button quit "Cancel"
>
> where
>
> AddToFunc RestartPager
> + I KillModule FvwmPager
> + I DestroyModuleConfig FvwmPager
> + I Module FvwmPager 0 $[FVWM_N_DESKS]
>
>
> Now the echo command displays "1 TheName" but Desk 0 gets renamed. I'm
> stymied.

Please always specify the version you use.

For 2.5.x, you should preferably use DesktopName instead of "*FvwmPager:
Label" although the second is also supported for now.

  *NameDesk: Command DesktopName $d $(deskname)

If you use 2.4.x I will post another solution for this expanding problem.

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 Wed Oct 02 2002 - 11:33:35 BST

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