beautypg.com

Grass Valley Xstudio Vertigo Suite v.4.10 User Manual

Page 274

background image

Xstudio User Manual

10-9

Adding logic to control objects

User Defined events can include parameters to supply more information to be used within
the action. Since parametrized User Defined events are only likely to be used in very
specific cases, what follows is a generic example with a control panel. It shows how to set
text from one text box to the next and change it along the way by clicking a button.

To create a panel using parametrized User Defined events:
1.

Create a new control panel with three (3) text boxes and a button.

2.

Select T

EXTBOX

2 and then display the A

CTION

E

DITOR

(CTRL + E).

You will create a new event for Textbox2.

3.

From the E

VENTS

drop-down list, select U

SER

D

EFINED

and then click the A

DD

E

VENT

button to the right of the drop-down list.

4.

In the A

DD

E

VENT

dialog box, type a name for the event followed immediately by in

parentheses into which you will enter a parameter name. For example,
MyEvents(text)

. Then click OK and the custom event is added immediately to the

Events List.

5.

You will now assign a S

END

E

VENT

action to the button object. This will send the new

event to Textbox2.
a.

Select the button object on the control panel.

b.

Select O

N

C

LICK

from the Event list.

c.

Select the S

END

E

VENT

action from the A

CTIONS

drop-down list and click the A

DD

A

CTIONS

button.

The Send Event is immediately added to the Action Table.

6.

In the A

CTION

P

ARAMETERS

, enter the name of your event in the E

VENT

T

YPE

field

followed by a parentheses into which you will enter Control:Textbox1. For
example, MyEvent(Control:Textbox1).
This means that whatever text is entered in Textbox1 becomes the parameter for the
U

SER

D

EFINED

event.

7.

Enter Control:Textbox2 in the Action Parameter’s T

ARGET

field.

This manual is related to the following products: