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.

How You Can Invoke FramesIf you set the BlocksFrames attribute to FALSE, the frame in which youchanged it and any children of that frame (opened after you made the change)appear active to the user. Although the frame is actually still blocked whileOpenROAD is executing an event block or procedure, the hourglass cursordoes not appear, and the user can type data in an entry field. Note that thisability does not affect the processing of the event queues. The work the userdoes while OpenROAD is executing code is buffered and then placed in thenative event queue when OpenROAD completes the event block or procedure.You can change the BlocksFrames attribute in either of the following ways:• When you open a frame, using the with clause of the callframe,openframe, or gotoframe statement, for example:status = callframe newframe withBlocksFrames = FALSE;• Inside an event block, by direct assignment, for example:on click updt_button =beginCurFrame.BlocksFrames = TRUE;...CurFrame.BlocksFrames = FALSE;end;Set BlocksFrames to FALSE only for those events and procedures that shouldreturn quickly. If a frame has some event blocks that take little time tocomplete and some that take much longer, start the frame with BlocksFramesset to FALSE and change it to TRUE for the long event blocks. If you allow along event to run with BlocksFrame set to FALSE, an inactive frame will notdisplay the hourglass cursor and yet the user cannot choose it to execute anoperation such as clicking a button.The BlocksFrames attribute does not affect the behavior of the calling framewhen OpenROAD is executing a:• Callframe statementA frame executing a callframe statement is always blocked.• Gotoframe statementThe frame that executes a gotoframe statement is closed.• Message statementA frame executing a message statement, directly or indirectly, is alwaysblocked.<strong>Programming</strong> Frames 107

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

Saved successfully!

Ooh no, something went wrong!