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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to