10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How You Can Invoke FramesHow the CurFrame System Variable WorksTo access the FrameExec object for the current frame from OpenROAD, usethe CurFrame (for current frame) system variable. CurFrame can be used tochange attributes such as:• The size of the frame• The background color of the frame• The field that receives the input focus after the current event block hascompletedFor more examples of using CurFrame and information about how to referencethe FrameExec object of another frame, see Inter-Frame CommunicationTechniques (see page 333).How Frames Access Child and Parent FramesCurFrame is also useful in letting a child frame access its parent (regardless ofwhether the child was opened or called by the parent frame). A child frame canalways access its parent by using the value of the FrameExec's ParentFrameattribute, as in the following example:parent_frame = FrameExec(CurFrame.ParentFrame);It later uses the value of parent_frame to send a UserEvent to the parent.If you want to change an opened frame's parent or enable two frames tocommunicate with each other, you can specify a FrameExec object as theParentFrame in the with clause of the openframe statement. For example, aparent frame can pass a null FrameExec to a child frame, establishing the childas a detached frame. If the parent frame closes, the child remains open. Formore information about using the with clause, see How You Can Change aFrame's Definition (see page 106).96 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!