home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / Microline3.0 / examples / uil1.uil < prev    next >
Encoding:
Text File  |  1998-04-08  |  4.1 KB  |  173 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19.  
  20. /*
  21.  * The following source code is part of the Microline Widget Library.
  22.  * The Microline widget library is made available to Mozilla developers
  23.  * under the Netscape Public License (NPL) by Neuron Data.  To learn
  24.  * more about Neuron Data, please visit the Neuron Data Home Page at
  25.  * http://www.neurondata.com.
  26.  */
  27.  
  28.  
  29. module uil1
  30. version = 'v1.0'
  31. names = case_sensitive
  32.  
  33. include file 'XmL/XmL.uih';
  34.  
  35. value
  36.     grey        : color('#C0C0C0', background);                        
  37.     lightGrey   : color('#E0E0E0', background);                        
  38.     black       : color('#000000', foreground);
  39.     white       : color('#FFFFFF', background);
  40.     darkBlue    : color('#000080', foreground);
  41.  
  42. object shellForm : 
  43. XmForm {
  44.     arguments {
  45.         XmNbackground = grey;
  46.         XmNmarginWidth = 10;
  47.         XmNmarginHeight = 10;
  48.         XmNshadowThickness = 0;
  49.     };
  50.     controls {
  51.         user_defined folder;
  52.     };
  53. };
  54.  
  55. object folder : 
  56. user_defined procedure XmLCreateFolder {
  57.     arguments {
  58.         XmNbackground = grey;
  59.         XmNforeground = black;
  60.         XmNtabsPerRow = 2;
  61.         XmNtopAttachment = XmATTACH_FORM;
  62.         XmNbottomAttachment = XmATTACH_FORM;
  63.         XmNleftAttachment = XmATTACH_FORM;
  64.         XmNrightAttachment = XmATTACH_FORM;
  65.     };
  66.     controls {
  67.         XmDrawnButton tabOne;
  68.         XmDrawnButton tabTwo;
  69.         XmDrawnButton tabThree;
  70.         XmDrawnButton tabFour;
  71.         XmForm folderForm;
  72.     };
  73. };
  74.  
  75. object tabOne: 
  76. XmDrawnButton {
  77.     arguments {
  78.         XmNlabelString = compound_string('Configuration');
  79.     };
  80. };
  81.  
  82. object tabTwo: 
  83. XmDrawnButton {
  84.     arguments {
  85.         XmNlabelString = compound_string('Settings');
  86.     };
  87. };
  88.  
  89. object tabThree: 
  90. XmDrawnButton {
  91.     arguments {
  92.         XmNlabelString = compound_string('Resources');
  93.     };
  94. };
  95.  
  96. object tabFour: 
  97. XmDrawnButton {
  98.     arguments {
  99.         XmNlabelString = compound_string('Hardware Types');
  100.     };
  101. };
  102.  
  103. object folderForm : 
  104. XmForm {
  105.     arguments {
  106.         XmNbackground = grey;
  107.         XmNhorizontalSpacing = 10;
  108.         XmNverticalSpacing = 10;
  109.     };
  110.     controls {
  111.         user_defined tree;
  112.         user_defined grid;
  113.         user_defined progress;
  114.     };
  115. };
  116.  
  117. object tree : 
  118. user_defined procedure XmLCreateTree {
  119.     arguments {
  120.         XmNbackground = grey;
  121.         XmNforeground = black;
  122.         XmNleftAttachment = XmATTACH_FORM;
  123.         XmNrightAttachment = XmATTACH_FORM;
  124.         XmNtopAttachment = XmATTACH_FORM;
  125.         XmNbottomAttachment = XmATTACH_POSITION;
  126.         XmNbottomPosition = 25;
  127.     };
  128. };
  129.  
  130. object grid : 
  131. user_defined procedure XmLCreateGrid {
  132.     arguments {
  133.         XmNbackground = grey;
  134.         XmNforeground = black;
  135.         XmNselectBackground = darkBlue;
  136.         XmNselectForeground = white;
  137.         XmNleftAttachment = XmATTACH_FORM;
  138.         XmNrightAttachment = XmATTACH_FORM;
  139.         XmNtopAttachment = XmATTACH_POSITION;
  140.         XmNtopPosition = 30;
  141.         XmNbottomAttachment = XmATTACH_POSITION;
  142.         XmNbottomPosition = 80;
  143.         XmNcolumns = 5;
  144.         XmNheadingRows = 1;
  145.         XmNsimpleHeadings = "Name|Width|Height|X|Y";
  146.         XmNsimpleWidths = "20c 10c 10c 8c 8c";
  147.         XmNrows = 20;
  148.         XmNleftFixedCount = 1;
  149.     };
  150. };
  151.  
  152. object progress : 
  153. user_defined procedure XmLCreateProgress {
  154.     arguments {
  155.         XmNtopShadowColor = lightGrey;
  156.         XmNbottomShadowColor = black;
  157.         XmNbackground = white;
  158.         XmNforeground = darkBlue;
  159.         XmNleftAttachment = XmATTACH_FORM;
  160.         XmNrightAttachment = XmATTACH_FORM;
  161.         XmNtopAttachment = XmATTACH_POSITION;
  162.         XmNtopPosition = 85;
  163.         XmNheight = 20;
  164.         XmNshadowThickness = 1;
  165.         XmNmeterStyle = MeterBoxes;
  166.         XmNnumBoxes = 20;
  167.         XmNvalue = 70;
  168.         XmNcompleteValue = 200;
  169.     };
  170. };
  171.  
  172. end module;
  173.