home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1995 March / PCD_395.iso / starview / wntmsci / german / dlgdemo.sr_ / DLGDEMO.SRC
Encoding:
Text File  |  1994-01-18  |  2.9 KB  |  137 lines

  1. /*******************************************************************
  2. *  DLGDEMO.SRC
  3. *  (c) 1992-1994 STAR DIVISION
  4. *******************************************************************/
  5.  
  6. #include "dlgdemo.hrc"
  7.  
  8. Menu APP_MENUBAR
  9. {
  10.     ItemList =
  11.     {
  12.         MenuItem
  13.         {
  14.             Text       = "~File";
  15.             Identifier = PM_FILE;
  16.             SubMenu    = Menu
  17.             {
  18.                 ItemList =
  19.                 {
  20.                     MenuItem
  21.                     {
  22.                         Text       = "~Dialog Example...";
  23.                         Identifier = MI_EXAMPLE;
  24.                     };
  25.                     MenuItem
  26.                     {
  27.                         Separator  = TRUE;
  28.                     };
  29.                     MenuItem
  30.                     {
  31.                         Text       = "E~xit";
  32.                         Identifier = MI_EXIT;
  33.                     };
  34.                 };
  35.             };
  36.         };
  37.     };
  38. };
  39.  
  40. ModalDialog DLG_SHAPE
  41. {
  42.     Size       = MAP_APPFONT( 135, 145 );
  43.     OutputSize = TRUE;
  44.     Moveable   = TRUE;
  45.     SVLook     = TRUE;
  46.     Text       = "Dialog Example";
  47.  
  48.     RadioButton DLG_BLACK
  49.     {
  50.         PosSize  = MAP_APPFONT( 10, 18, 50, 10 );
  51.         Text     = "~Black";
  52.     };
  53.  
  54.     RadioButton DLG_BLUE
  55.     {
  56.         PosSize  = MAP_APPFONT( 10, 30, 50, 10 );
  57.         Text     = "B~lue";
  58.     };
  59.  
  60.     RadioButton DLG_GREEN
  61.     {
  62.         PosSize  = MAP_APPFONT( 10, 42, 50, 10 );
  63.         Text     = "~Green";
  64.     };
  65.  
  66.     RadioButton DLG_CYAN
  67.     {
  68.         PosSize  = MAP_APPFONT( 10, 54, 50, 10 );
  69.         Text     = "~Cyan";
  70.     };
  71.  
  72.     RadioButton DLG_RED
  73.     {
  74.         PosSize  = MAP_APPFONT( 10, 66, 50, 10 );
  75.         Text     = "~Red";
  76.     };
  77.  
  78.     RadioButton DLG_MAGENTA
  79.     {
  80.         PosSize  = MAP_APPFONT( 10, 78, 50, 10 );
  81.         Text     = "~Magenta";
  82.     };
  83.  
  84.     RadioButton DLG_YELLOW
  85.     {
  86.         PosSize  = MAP_APPFONT( 10, 90, 50, 10 );
  87.         Text     = "~Yellow";
  88.     };
  89.  
  90.     RadioButton DLG_WHITE
  91.     {
  92.         PosSize  = MAP_APPFONT( 10, 102, 50, 10 );
  93.         Text     = "~White";
  94.     };
  95.  
  96.     GroupBox DLG_GB1
  97.     {
  98.         PosSize  = MAP_APPFONT( 5, 5, 60, 115 );
  99.         Text     = "Color";
  100.     };
  101.  
  102.     Control DLG_VIEW
  103.     {
  104.         PosSize  = MAP_APPFONT( 70, 10, 60, 55 );
  105.         Border   = TRUE;
  106.     };
  107.  
  108.     RadioButton DLG_RECT
  109.     {
  110.         PosSize  = MAP_APPFONT( 75, 85, 50, 10 );
  111.         Text     = "Rec~tangle";
  112.     };
  113.  
  114.     RadioButton DLG_ELL
  115.     {
  116.         PosSize  = MAP_APPFONT( 75, 97, 50, 10 );
  117.         Text     = "~Ellipse";
  118.     };
  119.  
  120.     GroupBox DLG_GB2
  121.     {
  122.         PosSize  = MAP_APPFONT( 70, 70, 60, 50 );
  123.         Text     = "Shape";
  124.     };
  125.  
  126.     OKButton DLG_OK
  127.     {
  128.         PosSize   = MAP_APPFONT( 15, 125, 45, 15 );
  129.         DefButton = TRUE;
  130.     };
  131.  
  132.     CancelButton DLG_CANCEL
  133.     {
  134.         PosSize   = MAP_APPFONT( 75, 125, 45, 15 );
  135.     };
  136. };
  137.