10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Event-based <strong>Programming</strong>How You Can Obtain Information about the Current EventThe FrameExec object (described in <strong>Programming</strong> Frames (see page 95))contains information about the current event. This information can be veryuseful in your event code. The Language Reference <strong>Guide</strong> online help lists theFrameExec attributes you can use for each of the OpenROAD events.The most useful of the FrameExec attributes are the following:TriggerFieldData Type: FieldObjectContains the field that triggered the event (the user originally interactedwith this field)OriginatorFieldData Type: FieldObjectContains the field specified in the original on statement of the currentevent blockInputFocusFieldData Type: ActiveFieldContains the field on the form that currently has the input focusPreviousFieldData Type: ActiveFieldContains the field that most recently had the input focus (the field that wasjust exited)TargetFieldData Type: ActiveFieldContains the field that is to be the next field with the input focus (the fieldto be entered next)In the following example, the TriggerField attribute is used to change thebackground color of the field that the user has just entered:on childentry =beginActiveField(CurFrame.TriggerField).BgColor =CC_RED;end330 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!