Page 1 of 1

Button with more actions

Posted: Thu Mar 01, 2012 2:42 am
by mikKummerfeld
Hello Guys,

I need a Button who "jumps" to a defined dialog.

eg.

dialog 1
dialog 2
dialog 3 with the button who must jump to dialog 1

It this possible ?

thx

Re: Button with more actions

Posted: Thu Mar 01, 2012 9:45 am
by FrancescoT
Dear User,

Unfortunately, you can not set a button to perform an action other than those already available in "Object Behavior" properties.

Let me check if could be done with an alternative solution.

I will post you as soon as I can .. if any.

Regards

Re: Button with more actions

Posted: Fri Mar 02, 2012 3:35 am
by FrancescoT
Dear User,

Set the button to "Return from Dialog" and then the button's name will be the result of the Display Dialog call, stored in the variable specified in the call. You can then conditionally in your script, jump to a dialog or set a variable.

In this way you should be able to solve your need.

Regards

Re: Button with more actions

Posted: Fri May 25, 2012 4:20 am
by mikKummerfeld
I need a button which saves the agb and readme on a specific folder...
Is this possible ?

Re: Button with more actions

Posted: Fri May 25, 2012 7:41 am
by FrancescoT
Dear Heiko,

if you follow my previous reply you already have the answer.

Regards

Re: Button with more actions

Posted: Mon Sep 03, 2012 9:31 am
by mikKummerfeld
I need a button to:

- open a weburl in browser
- run a executable file or pdf file

Re: Button with more actions

Posted: Mon Sep 03, 2012 10:36 am
by FrancescoT
Dear Heiko,

It is exactly the same as my first reply.

Anyway...

Add a button to your dialog and set as "Return from Dialog", the Object Behavior for that button.
To se that property, Double-click the button in Dialog Editor.
The Define Interactive Characteristics dialog appears.
Select the Object Behavior tab on this dialog and set as "Return from Dialog", the Performs Action ComBox.

Then in your script execute your desired actions conditionally, checking the value returned by "Display Dialog" command.
For example, if your button have MYBUTTON as ID, once pressed, "Display Dialog" command will return "MYBUTON".

Hope this helps you.

Regards