3. Statements : OpenROAD Language Statements : Openframe Statement : Examples—Openframe Statement
 
Share this page                  
Examples—Openframe Statement
Open the show_details frame and send a user event message:
initialize =
declare
     testarray = array of Addr;
     detailframe = FrameExec default null;
enddeclare
begin
     detailframe = null;
     /* other statements */
end
on click menu.detail =
begin
     detailframe = openframe show_details (addr_data = testarray);
          /* as soon as show_details frame is open,
          ** control returns here */
     /* other statements */
end
on click menu.sendtodetail =
begin
     if detailframe is not null then
          detailframe.SendUserEvent (eventname 'messagefromopener');
     endif;
end