home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _D9E3DAAE8D234BE7A2CDED1181512830 < prev    next >
Text File  |  2003-03-07  |  6KB  |  190 lines

  1. Working with form controls
  2.  
  3. Form controls make spreadsheets an interactive part of the user interface. When you create a form control, you can activate it to behave in a specific way. You can also customize the appearance and behavior of form controls by setting control properties.
  4.  
  5. In this section, you'll learn about
  6.  
  7.   creating controls on a spreadsheet
  8.   
  9.   customizing and managing controls on a spreadsheet
  10.   
  11. Creating controls on a spreadsheet
  12.  
  13. You can add the following controls to a spreadsheet:
  14.  
  15.  
  16.  
  17. Control    Description
  18.  
  19.     Push button-performs a specific action when clicked
  20.  
  21.     Check box-provides two choices: Yes when enabled and No when disabled
  22.  
  23.     Radio button-typically used in a mutually exclusive list where only one radio button can be selected at a time
  24.  
  25.     Group box-usually contains other controls, such as radio buttons or check boxes
  26.  
  27.     List box-lets a user browse values using a scroll bar
  28.  
  29.     Combo box-creates a drop-down list box from which a user can make choices from
  30.  
  31.     Label text-allows you to add static text near a control
  32.  
  33.     Vertical scroll bar-lets a user scroll through a list of values by clicking arrows
  34.  
  35.     Spin control-lets a user choose a value by clicking arrows and selecting a value
  36.  
  37.     Edit box-lets a user type text
  38.  
  39.  
  40.  
  41. The way controls are activated varies depending on the action they incur. When you specify a source block to appear in a control (for example, a list box), each row in the block you specify becomes one item in a list. If you want to make a control functional, you must specify the appropriate information in a different area depending on the control.
  42.  
  43. You can attach a macro to a form control that runs when a user activates the control. For example, a user can click a button that runs a macro to perform a calculation. You can attach a macro to all form controls except group boxes and labels. For information about creating macros, see "Using macros."
  44.  
  45. Form controls can also be attached to the Internet. For example, a button can launch a browser linked to a Web site. For information about using Quattro Pro notebooks with the Internet, see "Working with the Internet."
  46.  
  47. As well, you can link a custom dialog box to a form control so that when a user executes a macro, the specified dialog box displays.
  48.  
  49. To add a form control to a spreadsheet
  50.  
  51. 1    Click Insert  Form control, and click a form control.
  52.  
  53. 2    Click where you want the control to display.
  54.  
  55. 3    Drag diagonally until the control is the desired size.
  56.  
  57. Tip
  58.  
  59.   To create a form control of the default size, position the pointer where you want the control to display, and click.
  60.   
  61. To attach a macro to a form control
  62.  
  63. 1    Select a form control.
  64.  
  65. 2    Right-click the control, and click Properties.
  66.  
  67. 3    Click the Macro tab.
  68.  
  69. 4    Type the macro command name or location in the Enter macro box.
  70.  
  71. You must enclose the macro command name with braces {}.
  72.  
  73. To attach a form control to the Internet
  74.  
  75. 1    Select a form control.
  76.  
  77. 2    Right-click the control, and click Properties.
  78.  
  79. 3    Click the Macro tab.
  80.  
  81. 4    Click Link to URL.
  82.  
  83. 5    Type the Internet address in the URL box.
  84.  
  85. To display a dialog box from a form control
  86.  
  87. 1    Select a form control.
  88.  
  89. 2    Right-click the control, and click Properties.
  90.  
  91. 3    Click the Macro tab.
  92.  
  93. 4    Click Execute dialog.
  94.  
  95. 5    In the Execute dialog box, choose a dialog box from the Active dialog list.
  96.  
  97. 6    Type a cell reference in the Result cell box.
  98.  
  99. 7    Type a cell reference in the Values range box.
  100.  
  101. Customizing and managing controls on a spreadsheet
  102.  
  103. You can change both the border color and border width of a form control. As well, you can change the label of a form control to better describe its role in the spreadsheet.
  104.  
  105. When you add a form control to a spreadsheet, Quattro Pro assigns it a default object name in the format ControlName1, ControlName2, and so on. The default object name is the control label.
  106.  
  107. For controls that do not have labels (list boxes, combo boxes, scroll bars, and spin controls), you can add a label beside the original control.
  108.  
  109. The object name is the name used to reference the form control in macros, link commands, and in spreadsheet functions. You can change the object name of a form control the same way you change the object name of other OLE objects.
  110.  
  111. You can enable protection on a form control. Enabling protection prevents a control from being changed or deleted by other users when protections have been set higher up at the sheet level. For information about protecting spreadsheets and cells, see "Protecting data."
  112.  
  113. You can print a spreadsheet without printing a form control.
  114.  
  115. To change the border of a form control
  116.  
  117. 1    Select a form control.
  118.  
  119. 2    Right-click the control, and click Properties.
  120.  
  121. 3    Click the Border color tab.
  122.  
  123. 4    Click a color on the color palette.
  124.  
  125. 5    Click the Box type tab.
  126.  
  127. 6    Enable a Box type option.
  128.  
  129. If you want to create a shadow behind the control, enable the Drop shadow check box.
  130.  
  131. To change the label of a form control
  132.  
  133. 1    Select a form control.
  134.  
  135. 2    Right-click the control, and click Properties.
  136.  
  137. 3    Click the Label text tab.
  138.  
  139. 4    Type a new label in the Enter text box.
  140.  
  141. To add a label beside a form control
  142.  
  143. 1    Click Insert  Form control  Label text.
  144.  
  145. 2    Drag the label to a spot near a form control.
  146.  
  147. 3    Right-click the label, and click Properties.
  148.  
  149. 4    Click the Label text tab.
  150.  
  151. 5    Type a label in the Enter text box.
  152.  
  153. Tip
  154.  
  155.   To create a control of the default size, put the cursor in the desired position and click once.
  156.   
  157. To change the object name of a form control
  158.  
  159. 1    Select a form control.
  160.  
  161. 2    Right-click the control, and click Properties.
  162.  
  163. 3    Click the Object name tab.
  164.  
  165. 4    Type a new name in the Object name box.
  166.  
  167. To enable protection on a form control
  168.  
  169. 1    Select a form control.
  170.  
  171. 2    Right-click the control, and click Properties.
  172.  
  173. 3    Click the Protection tab.
  174.  
  175. 4    Enable the Locked check box.
  176.  
  177. To print a spreadsheet without printing a form control
  178.  
  179. 1    Select a form control.
  180.  
  181. 2    Right-click the control, and click Properties.
  182.  
  183. 3    Click the Print tab.
  184.  
  185. 4    Disable the Print object check box.
  186.  
  187.  
  188.  
  189.  
  190.