home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / ODF / Form / Sources / Views.fr < prev   
Encoding:
Text File  |  1996-06-03  |  13.8 KB  |  460 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    File:                Views.fr
  3. //    Release Version:    $ ODF 1 $
  4. //
  5. //    Contains:            Resources defining the Form part's views
  6. //
  7. //  WARNING: THIS FILE WAS GENERATED BY APPMAKER, DO NOT EDIT IT DIRECTLY, UNLESS YOU 
  8. //           WON'T MAKE ANYMORE CHANGES WITH APPMAKER.
  9. //
  10. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  11. //========================================================================================
  12.  
  13. #ifndef FWRESFIL_K
  14. #include "FWResFil.k"
  15. #endif
  16.  
  17. #ifndef FWVIEWS_FR
  18. #include "FWViews.fr"
  19. #endif
  20.  
  21. #ifndef AMVIEWS_FR
  22. #include "AMViews.fr"
  23. #endif
  24.  
  25. #ifndef FWNOTDEF_H
  26. #include "FWNotDef.h"     
  27. #endif
  28.  
  29. #ifndef DEFINES_K
  30. #include "Defines.k"
  31. #endif
  32.  
  33. //========================================================================================
  34. // resource FW_RFrameLayout(kMainWindowID)
  35. //========================================================================================
  36. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  37.  
  38. #define H    FW_FIX(531)
  39. #define V    FW_FIX(577)
  40.  
  41. #define H1    H + FW_FIX(1)
  42. #define V1    V + FW_FIX(1)
  43.  
  44. resource FW_RFrameLayout(kMainWindowResID)
  45. {
  46.     {H,V},                    // LayoutSize
  47.     {                        // Start list of frame's subviews
  48.         RContentView        // Scroller
  49.         (
  50.             kScrollerID,                // view id
  51.             { FW_FIX(0),FW_FIX(0),FW_FIX((0+517)),FW_FIX((0+562))},
  52.             FW_kFitToEnclosure,                // binding
  53.             { 517, 562 /*kScrollerExtentX, kScrollerExtentY*/ },    // extent
  54.             1,                            // is the ContentView
  55.             FW_kXYScrolling,            // scrolling direction
  56.             {                            // Start list of SubViews
  57.                 RPictView        // FormPict
  58.                 (
  59.                     kFormPictPictID,        // view id
  60.                     { FW_FIX(0),FW_FIX(0),FW_FIX((0+516)),FW_FIX((0+795))},
  61.                     FW_kFixedBounds,        // binding
  62.                     1000                // PICT rsrc id
  63.                 ),
  64.                 FW_REditView    // FirstName
  65.                 (
  66.                     kFirstNameEditID,                // view id
  67.                     { FW_FIX(290),FW_FIX(90),FW_FIX((290+160)),FW_FIX((90+17))},
  68.                     FW_kFixedBounds,            // binding
  69.                     -1,                            // max chars
  70.                     9,                            // attributes
  71.                     { FW_FIX(12), FW_kBold, "Times" },
  72.                     "first name"                    // initial text
  73.                 ),
  74.                 FW_REditView    // LastName
  75.                 (
  76.                     kLastNameEditID,                // view id
  77.                     { FW_FIX(290),FW_FIX(110),FW_FIX((290+160)),FW_FIX((110+17))},
  78.                     FW_kFixedBounds,            // binding
  79.                     -1,                            // max chars
  80.                     9,                            // attributes
  81.                     { FW_FIX(12), FW_kBold, "Times" },
  82.                     "last name"                    // initial text
  83.                 ),
  84.                 FW_REditView    // MemberName
  85.                 (
  86.                     kMemberNameEditID,                // view id
  87.                     { FW_FIX(290),FW_FIX(130),FW_FIX((290+160)),FW_FIX((130+17))},
  88.                     FW_kFixedBounds,            // binding
  89.                     -1,                            // max chars
  90.                     9,                            // attributes
  91.                     { FW_FIX(12), FW_kBold, "Times" },
  92.                     "member name"                    // initial text
  93.                 ),
  94.                 FW_REditView    // EMailAddress
  95.                 (
  96.                     kEMailAddressEditID,                // view id
  97.                     { FW_FIX(290),FW_FIX(150),FW_FIX((290+160)),FW_FIX((150+17))},
  98.                     FW_kFixedBounds,            // binding
  99.                     -1,                            // max chars
  100.                     9,                            // attributes
  101.                     { FW_FIX(12), FW_kBold, "Times" },
  102.                     "e-mail address"                    // initial text
  103.                 ),
  104.                 FW_REditView    // Comments
  105.                 (
  106.                     kCommentsEditID,                // view id
  107.                     { FW_FIX(30),FW_FIX(200),FW_FIX((30+420)),FW_FIX((200+65))},
  108.                     FW_kFixedBounds,            // binding
  109.                     -1,                            // max chars
  110.                     9,                            // attributes
  111.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  112.                     "Comments"                    // initial text
  113.                 ),
  114.                 FW_RButton        // SubscribeToODFFlash
  115.                 (
  116.                     kSubscribeToODFFlashCheckID,                // view id
  117.                     { FW_FIX(30),FW_FIX(310),FW_FIX((30+170)),FW_FIX((310+14))},
  118.                     FW_kFixedBounds,                // binding
  119.                     0,                                // control message
  120.                     0,                                // receiver
  121.                     1,                                // control value
  122.                     FW_kCheckButton,                // button kind
  123.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  124.                     "Subscribe to ODFFlash"            
  125.                 ),
  126.                 RRadioGroup    // ModemSpeedUsed
  127.                 (
  128.                     kModemSpeedUsedGroupID,            // view id
  129.                     { FW_FIX(30),FW_FIX(360),FW_FIX((30+190)),FW_FIX((360+80))},
  130.                     FW_kFixedBounds,                // binding
  131.                     {FW_FIX(190),FW_FIX(80)},    // extent
  132.                     0,                            // not the ContentView
  133.                     FW_kNoScrolling,            // scrolling direction
  134.                     {                            // Start list of SubViews
  135.                     FW_RGroupBox    // ModemSpeedUsed
  136.                     (
  137.                         0,                // view id
  138.                         { FW_FIX(0),FW_FIX(0),FW_FIX(190),FW_FIX(80)},
  139.                         FW_kFixedBounds,                // binding
  140.                         { FW_FIX(12), FW_kPlain, "systemFont" },
  141.                         "Modem speed used"
  142.                     ),
  143.                         FW_RButton    // 14.4 Kbps or lower
  144.                         (
  145.                             1,        // view id
  146.                             { FW_FIX(5),FW_FIX(20),FW_FIX(189),FW_FIX(36)},
  147.                             FW_kFixedBounds,                // binding
  148.                             0,                                // control message
  149.                             0,                                // receiver
  150.                             0,                                // control value
  151.                             FW_kRadioButton,                // button kind
  152.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  153.                             "14.4 Kbps or lower"            
  154.                         ),
  155.                         FW_RButton    // 28.8 Kbps to 256 Kbps
  156.                         (
  157.                             2,        // view id
  158.                             { FW_FIX(5),FW_FIX(39),FW_FIX(189),FW_FIX(55)},
  159.                             FW_kFixedBounds,                // binding
  160.                             0,                                // control message
  161.                             0,                                // receiver
  162.                             0,                                // control value
  163.                             FW_kRadioButton,                // button kind
  164.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  165.                             "28.8 Kbps to 256 Kbps"            
  166.                         ),
  167.                         FW_RButton    // Faster than 256 Kbps
  168.                         (
  169.                             3,        // view id
  170.                             { FW_FIX(5),FW_FIX(58),FW_FIX(189),FW_FIX(74)},
  171.                             FW_kFixedBounds,                // binding
  172.                             0,                                // control message
  173.                             0,                                // receiver
  174.                             0,                                // control value
  175.                             FW_kRadioButton,                // button kind
  176.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  177.                             "Faster than 256 Kbps"            
  178.                         )
  179.                     },                            // end list of SubViews
  180.                     FW_RRadioCluster    
  181.                     (
  182.                         1,                // Dummy field
  183.                         {1, 2, 3}        // list of radio ids
  184.                     )
  185.                 )            // end of RRadioGroup,
  186.                 FW_RListBox        // Platform
  187.                 (
  188.                     kPlatformListBoxID,            // view id
  189.                     { FW_FIX(250),FW_FIX(362),FW_FIX((250+134)),FW_FIX((362+78))},
  190.                     FW_kFixedBounds,                // binding
  191.                     10,                                // number of rows
  192.                     1,                                // vertical SB
  193.                     0,                                // single selection
  194.                     1,                                // use focus frame
  195.                     0,                                // use clientdata
  196.                     0,                                // DblClick message
  197.                     { FW_FIX(12), FW_kPlain, "Helvetica" },
  198.                     {                                // List of strings
  199.                         "Mac OS",
  200.                         "OS/2 Warp",
  201.                         "Windows 95",
  202.                         "Windows NT",
  203.                         "IBM AIX",
  204.                         "Sun Sparc Solaris",
  205.                         "Sun OS 4.1.x",
  206.                         "HP/UX",
  207.                         "Unix IRIX",
  208.                         "Unix Linux"
  209.                     }
  210.                 ),
  211.  
  212.             FW_RButton        // Add
  213.             (
  214.                     kAddButtonID,                // view id
  215.                     { FW_FIX(410),FW_FIX(370),FW_FIX((410+70)),FW_FIX((370+20))},
  216.                     FW_kFixedBounds,                // binding
  217.                     FW_kButtonPressedMsg,            // control message
  218.                     FW_kFrameReceiver,                // receiver
  219.                     0,                                // control value
  220.                     FW_kPushButton,                    // button kind
  221.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  222.                     "Add"            
  223.                 ),
  224.  
  225.             FW_RButton        // Remove
  226.             (
  227.                     kRemoveButtonID,                // view id
  228.                     { FW_FIX(410),FW_FIX(400),FW_FIX((410+70)),FW_FIX((400+20))},
  229.                     FW_kFixedBounds,                // binding
  230.                     FW_kButtonPressedMsg,            // control message
  231.                     FW_kFrameReceiver,                // receiver
  232.                     0,                                // control value
  233.                     FW_kPushButton,                    // button kind
  234.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  235.                     "Remove"            
  236.                 ),
  237.                 FW_RPopupMenu    // BrowseTime
  238.                 (
  239.                     kBrowseTimePopupID,            // view id
  240.                     { FW_FIX(30),FW_FIX(477),FW_FIX((30+200)),FW_FIX((477+20))},
  241.                     FW_kFixedBounds,            // binding
  242.                     FW_kPopupClickedMsg,        // control message
  243.                     FW_kFrameReceiver,            // control receiver
  244.                     0,                            // control value
  245.                     1000,                    // Mac menu id
  246.                     0,                            // title width
  247.                     1,                            // Initial menu item
  248.                     0,                            // Menu variation
  249.                     0,                            // Menu refCon    
  250.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  251.                     ""                    // title
  252.                 ),
  253.                 FW_RPopupMenu    // OtherTime
  254.                 (
  255.                     kOtherTimePopupID,            // view id
  256.                     { FW_FIX(30),FW_FIX(540),FW_FIX((30+200)),FW_FIX((540+20))},
  257.                     FW_kFixedBounds,            // binding
  258.                     FW_kPopupClickedMsg,        // control message
  259.                     FW_kFrameReceiver,            // control receiver
  260.                     0,                            // control value
  261.                     1001,                    // Mac menu id
  262.                     0,                            // title width
  263.                     1,                            // Initial menu item
  264.                     0,                            // Menu variation
  265.                     0,                            // Menu refCon    
  266.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  267.                     ""                    // title
  268.                 ),
  269.                 RRadioGroup    // HowDidYouDiscoverODFWired
  270.                 (
  271.                     kHowDidYouDiscoverODFWiredGroupID,            // view id
  272.                     { FW_FIX(30),FW_FIX(580),FW_FIX((30+320)),FW_FIX((580+120))},
  273.                     FW_kFixedBounds,                // binding
  274.                     {FW_FIX(320),FW_FIX(120)},    // extent
  275.                     0,                            // not the ContentView
  276.                     FW_kNoScrolling,            // scrolling direction
  277.                     {                            // Start list of SubViews
  278.                     FW_RGroupBox    // HowDidYouDiscoverODFWired
  279.                     (
  280.                         0,                // view id
  281.                         { FW_FIX(0),FW_FIX(0),FW_FIX(320),FW_FIX(120)},
  282.                         FW_kFixedBounds,                // binding
  283.                         { FW_FIX(12), FW_kPlain, "systemFont" },
  284.                         "How did you discover ODFWired?"
  285.                     ),
  286.                         FW_RButton    // Word of mouth
  287.                         (
  288.                             1,        // view id
  289.                             { FW_FIX(5),FW_FIX(20),FW_FIX(319),FW_FIX(36)},
  290.                             FW_kFixedBounds,                // binding
  291.                             0,                                // control message
  292.                             0,                                // receiver
  293.                             0,                                // control value
  294.                             FW_kRadioButton,                // button kind
  295.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  296.                             "Word of mouth"            
  297.                         ),
  298.                         FW_RButton    // Hyperlink from another site:
  299.                         (
  300.                             2,        // view id
  301.                             { FW_FIX(5),FW_FIX(39),FW_FIX(319),FW_FIX(55)},
  302.                             FW_kFixedBounds,                // binding
  303.                             0,                                // control message
  304.                             0,                                // receiver
  305.                             0,                                // control value
  306.                             FW_kRadioButton,                // button kind
  307.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  308.                             "Hyperlink from another site:"            
  309.                         ),
  310.                         FW_RButton    // Ad in MacTech Magazine
  311.                         (
  312.                             3,        // view id
  313.                             { FW_FIX(5),FW_FIX(58),FW_FIX(319),FW_FIX(74)},
  314.                             FW_kFixedBounds,                // binding
  315.                             0,                                // control message
  316.                             0,                                // receiver
  317.                             0,                                // control value
  318.                             FW_kRadioButton,                // button kind
  319.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  320.                             "Ad in MacTech Magazine"            
  321.                         ),
  322.                         FW_RButton    // Other magazine, newspaper, radio
  323.                         (
  324.                             4,        // view id
  325.                             { FW_FIX(5),FW_FIX(77),FW_FIX(319),FW_FIX(93)},
  326.                             FW_kFixedBounds,                // binding
  327.                             0,                                // control message
  328.                             0,                                // receiver
  329.                             0,                                // control value
  330.                             FW_kRadioButton,                // button kind
  331.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  332.                             "Other magazine, newspaper, radio"            
  333.                         ),
  334.                         FW_RButton    // Other
  335.                         (
  336.                             5,        // view id
  337.                             { FW_FIX(5),FW_FIX(96),FW_FIX(319),FW_FIX(112)},
  338.                             FW_kFixedBounds,                // binding
  339.                             0,                                // control message
  340.                             0,                                // receiver
  341.                             0,                                // control value
  342.                             FW_kRadioButton,                // button kind
  343.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  344.                             "Other"            
  345.                         )
  346.                     },                            // end list of SubViews
  347.                     FW_RRadioCluster    
  348.                     (
  349.                         1,                // Dummy field
  350.                         {1, 2, 3, 4, 5}        // list of radio ids
  351.                     )
  352.                 )            // end of RRadioGroup,
  353.                 RRadioGroup    // YesNo
  354.                 (
  355.                     kYesNoGroupID,            // view id
  356.                     { FW_FIX(40),FW_FIX(720),FW_FIX((40+70)),FW_FIX((720+40))},
  357.                     FW_kFixedBounds,                // binding
  358.                     {FW_FIX(70),FW_FIX(40)},    // extent
  359.                     0,                            // not the ContentView
  360.                     FW_kNoScrolling,            // scrolling direction
  361.                     {                            // Start list of SubViews
  362.                         FW_RButton    // Yes
  363.                         (
  364.                             1,        // view id
  365.                             { FW_FIX(1),FW_FIX(1),FW_FIX(69),FW_FIX(17)},
  366.                             FW_kFixedBounds,                // binding
  367.                             0,                                // control message
  368.                             0,                                // receiver
  369.                             0,                                // control value
  370.                             FW_kRadioButton,                // button kind
  371.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  372.                             "Yes"            
  373.                         ),
  374.                         FW_RButton    // No
  375.                         (
  376.                             2,        // view id
  377.                             { FW_FIX(1),FW_FIX(19),FW_FIX(69),FW_FIX(35)},
  378.                             FW_kFixedBounds,                // binding
  379.                             0,                                // control message
  380.                             0,                                // receiver
  381.                             0,                                // control value
  382.                             FW_kRadioButton,                // button kind
  383.                             { FW_FIX(12), FW_kPlain, "systemFont" },
  384.                             "No"            
  385.                         )
  386.                     },                            // end list of SubViews
  387.                     FW_RRadioCluster    
  388.                     (
  389.                         1,                // Dummy field
  390.                         {1, 2}        // list of radio ids
  391.                     )
  392.                 )            // end of RRadioGroup,
  393.  
  394.             FW_RButton        // JoinODFWired
  395.             (
  396.                     kJoinODFWiredButtonID,                // view id
  397.                     { FW_FIX(300),FW_FIX(750),FW_FIX((300+150)),FW_FIX((750+25))},
  398.                     FW_kFixedBounds,                // binding
  399.                     FW_kButtonPressedMsg,            // control message
  400.                     FW_kFrameReceiver,                // receiver
  401.                     0,                                // control value
  402.                     FW_kPushButton,                    // button kind
  403.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  404.                     "Join ODFWired!"            
  405.                 )
  406.             }        // end SubViews
  407.         ),
  408.  
  409.     FW_RScrollBar        // Horz
  410.     (
  411.             kHorzScrollBarID,                // view id
  412.             { FW_FIX(-1),FW_FIX(562),FW_FIX((-1+518)),FW_FIX((562+16))},
  413.             FW_kHScrollBarBinding,            // binding
  414.             0,                                // control message
  415.             0,                                // receiver
  416.             0,                                // control value
  417.             0,                            // SB Min Value (adjusted at runtime)
  418.             1,                            // SB Max Value (adjusted at runtime)
  419.             FW_ONE,                        // SB Minor Units (adjusted at runtime)
  420.             FW_ONE                        // SB Major Units (adjusted at runtime)
  421.         ),
  422.         FW_RScrollBar        // Vert
  423.         (
  424.             kVertScrollBarID,                // view id
  425.             { FW_FIX(516),FW_FIX(-1),FW_FIX((516+16)),FW_FIX((-1+564))},
  426.             FW_kVScrollBarBinding,            // binding
  427.             0,                                // control message
  428.             0,                                // receiver
  429.             0,                                // control value
  430.             0,                            // SB Min Value (adjusted at runtime)
  431.             1,                            // SB Max Value (adjusted at runtime)
  432.             FW_ONE,                        // SB Minor Units (adjusted at runtime)
  433.             FW_ONE                        // SB Major Units (adjusted at runtime)
  434.         ),
  435.         FW_RGrowBox
  436.         (
  437.             'grow',                            // view Id
  438.             {H - FW_SBSIZE, V - FW_SBSIZE, H1, V1},        // bounds
  439.             FW_kGrowBoxBinding                // standard grow box binding
  440.         )
  441.  
  442.     },                        // End list of frame's subviews
  443.     {                        // Scroller
  444.         FW_RScrollBarScroller
  445.         (
  446.             0,                    // AutoScrollInset: not used here
  447.             {0, 0}                // AutoScrollIncrement: 0 = no auto-scroll 
  448.             kHorzScrollBarID,    // Horizontal scroll-bar ID
  449.             kVertScrollBarID    // Vertical scroll-bar ID
  450.         )
  451.     }
  452. };
  453.  
  454. #undef H
  455. #undef V
  456.  
  457. #undef H1
  458. #undef V1
  459.  
  460.