the fair gds editor MacroExample3

Macro Example 3

This example shows simple user dialogs in macros.

Download: Sample3.layout

next example

   1 #!/usr/bin/layout
   2 #name=#3: Dialog
   3 #help=User Dialog;
   4 
   5 int  main() {
   6  string s=layout->getText("Hallo","Bitte Text eingeben:","test");
   7  int i=layout->getInteger("Hallo","Bitte Int eingeben:", 3 );
   8  double d=layout->getDouble("Hallo","Bitte double eingeben:", 4.6 );
   9  layout->showMessage("Hallo",s+(i/d));
  10 }

See also


CategoryMacro


MacroExample3 (last edited 2017-05-07 08:27:08 by JurgenThies)