the fair gds editor StatusMacro

Status Display Macro

Macros can display its progress status in the status bar of the LayoutEditor. This macro show in progress in procent and does not do anything else useful.

Download: status.layout

   1 #!/usr/bin/layout
   2 #name=status example
   3 #help=status example
   4 
   5 int  main() {
   6  int i,k;
   7  for(i=0;i<=100;i++){ 
   8   string s; s.setNum(i);
   9   layout->showStatus("completed "+s+"%"); 
  10   for (k=0;k<1000;k++){
  11    //do something 
  12    layout->drawing->newCell();
  13    layout->drawing->p(10,10);
  14    layout->drawing->p(20,20);
  15    layout->drawing->box();
  16    layout->drawing->deleteCurrentCell();
  17   }
  18  }
  19 }

See also


CategoryMacro


StatusMacro (last edited 2012-05-14 17:12:11 by dslb-088-066-122-159)