Re: FVWM: FVWM Client decorations

From: Olivier Chapuis <olivier.chapuis_at_free.fr>
Date: Sat, 28 Apr 2001 09:41:43 +0200

Le Samedi 28 Avril 2001 02:29, vous avez écrit :
> On 24 Apr 2001 11:37:41 -0400, Louis LaFontant wrote:
> > I also need a way to wrap a long line of text to continue on next line
> > in a widget.
> >
> > Is there a way to capture environment variables?
>
> In the private message Louis said he is asking about FvwmScript module.
>

About warping long line:
With ItemDraw it is not possible to warp long line. To Display 3 lines
you need to use 3 ItemDraw. However, with List widget you can
display long text (by separating the lines by some |).

To capture an environment variable in a FvwmScript you can do

        Set $cmd={echo $MyEnvVar}
        Set $ScriptVar=(GetOutput $cmd 1 -1)

and your env variable will be in $ScriptVar

> He also asks:
> > Is there a way to implement a "wait" ,using an FvwmScript module,
> > dialog trigger ed until a specified process has started. What's being
> > called for is to display a "wait' dialog which continues to display until
> > a specified process has started. Once the process has started, the "wait"
> > dialog disappears....
>

DestroyFunc FuncMyStartApp
AddToFunc FuncMyStartApp
+ I FvwmScript FvwmScript-MyWaitScript $1
+ I Wait "name of FvwmScript-MyWaitScript"
+ I Exec exec $0
+ I Wait "$1"
+ All (name of FvwmScript-MyWaitScript) Delete

So now to start an app with name app_name and execution cmd
line exec_name you should execute (FVWM sense):

FuncMyStartApp "exec_name" "app_name"

We use some things like that in fvwm-themes. Also, I assume that
you use fvwm-2.3.3x, but the above works probably with 2.2.x.

> I know the answers on all 3 questions, but they are probably not full.
> I prefer to wait for Olivier or someone else to answer more fully.
>

I am not sure that my answers are better than if you answer. Also,
I am not sure to really understand the questions.

Hope this help. Olivier.
--
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 Sat Apr 28 2001 - 03:55:04 BST

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