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

  1. Reference: Properties of form controls
  2.  
  3. Properties of form controls
  4.  
  5. Form controls are objects such as buttons, list boxes, and radio buttons. Quattro Pro lets you place these controls directly onto your spreadsheet, and they can run a macro, display a custom dialog box, or display spreadsheet data. There are many properties available for use in developing form controls.
  6.  
  7. Active dialog box properties
  8.  
  9. The following properties control the behavior of the dialog box:
  10.  
  11.   Dimension-specifies the exact size and position of the dialog box
  12.   
  13.   Title-specifies the title of the dialog box, which the user will see
  14.   
  15.   Position adjust-specifies how the dialog box moves when the Quattro Pro window is resized
  16.   
  17.   Grid options-shows/hides a grid and sets the number of pixels between gridlines
  18.   
  19.   Name-used to identify the dialog box in macros, link commands, and formulas
  20.   
  21.   Disabled-disables all controls in the dialog box
  22.   
  23.   Value-the current setting of the dialog box (a comma separated list of the current control settings of the dialog box
  24.   
  25. Active page property
  26.  
  27. Indicates the name of the active tab in a tab control.
  28.  
  29. Add down button property
  30.  
  31. Adds a down arrow to the right of a combo box.
  32.  
  33. Alarm on property
  34.  
  35. Turns the timer alarm on or off. When set to Yes, the time control generates an alarm event at the time specified by the Alarm time property. For information about the Alarm time property, see "Alarm time property."
  36.  
  37. Alarm time property
  38.  
  39. Specifies the time of day to generate an alarm event when Alarm on is set to Yes.
  40.  
  41. Allow point mode property
  42.  
  43. Lets users use the pointer to select cells while a dialog box remains on the screen. The Field type property must be set to a field type other than integer before this property can be enabled.
  44.  
  45. Attach child property
  46.  
  47. Used to group controls for moving or resizing. The Attach child property is available for many controls. For information about working with child controls, see "Working with child controls in dialog boxes."
  48.  
  49. Bitmap property
  50.  
  51. Specifies a .bmp file or an internal Quattro Pro bitmap to appear on a button.
  52.  
  53.   System bitmaps-displays internal bitmaps used by Corel Quattro Pro. Select one from the list, or type the name of another image.
  54.   
  55.   Bitmap-sets the name of the bitmap you want to use. Click the folder button to select a different file.
  56.   
  57.   Preview-shows a sample of what the bitmap looks like
  58.   
  59. Button type property
  60.  
  61. Specifies the type of button:
  62.  
  63.   Push button-acts like a push button; you can use link commands to make it perform operations when a user clicks it
  64.   
  65.   Radio button-acts like a radio button, including a radio button's behavior in the group box. (A bitmap button appears recessed when a user chooses it.)
  66.   
  67.   Check box button-acts like a check box button
  68.   
  69.   OK exit button-closes the dialog box like a standard OK button. If the dialog box was displayed by {DODIALOG}, the values for controls whose Process value property is set to Yes are written back to the setting block.
  70.   
  71.   Cancel exit button-closes the dialog box like a standard Cancel button. If the dialog box was displayed by {DODIALOG}, the values for controls whose Process value property is set to Yes are not written back to the setting block, since the dialog box was canceled.
  72.   
  73. Convert text property
  74.  
  75. Controls the format of text in edit fields. If Convert text is set to Yes, all characters preceded by a backslash (\ ) are treated as escape sequences. Important: This property is valid only if a field's value is set via a macro command or link, and not simply typed into the edit field.
  76.  
  77. Valid formatting codes for edit field text consist of the following:
  78.  
  79. \n-displays following text on a new line.
  80.  
  81. \t-inserts a tab (handy for lining up columns of text within the edit field).
  82.  
  83. \\-inserts a backslash (\) into the text. Use \\ when you have to enter \n or \t as normal text into the edit field.
  84.  
  85. Current time property
  86.  
  87. Retrieves the current time. Settings cannot be altered.
  88.  
  89.   Hours-displays the current number of hours on your system clock
  90.   
  91.   Minutes-displays the current number of minutes on your system clock
  92.   
  93.   Seconds-displays the current number of seconds on your system clock
  94.   
  95. Custom color property
  96.  
  97. Specifies whether the color control should include a button for specifying different colors.
  98.  
  99. Default property
  100.  
  101. Determines the default value displayed in a spin control or an edit field control (with Field type set to Integer).
  102.  
  103. Default button property
  104.  
  105. Specifies whether a push button or bitmap button is automatically clicked when the user presses ENTER in a dialog box or toolbar. A button configured this way is called the default button. A button defined as the default button displays in the dialog box with a thick black border. Only one button in the dialog box can have this property set to Yes; by default, it is the OK button. Setting a control's Default button property to Yes automatically sets the other control's Default button properties to No.
  106.  
  107. Depend on property
  108.  
  109. Specifies the areas of Quattro Pro in which the control is enabled when the dialog box displays. If all of the options are enabled, the control is always available. This property is available for many controls.
  110.  
  111.   Desktop-enables the control when the dialog is displayed from the Quattro Pro desktop
  112.   
  113.   Notebook-enables the control when the dialog is displayed from a notebook window
  114.   
  115.   Chart-enables the control when the dialog is displayed from a graphics window
  116.   
  117.   Dialog-enables the control when the dialog is displayed from another dialog box
  118.   
  119.   Input line-enables the control when the dialog is displayed from the input line
  120.   
  121.   Objects page-enables the control when the dialog is displayed from the Objects sheet
  122.   
  123. Dialog type property
  124.  
  125. Specifies whether a file control is for saving or opening files.
  126.  
  127. Dimension property
  128.  
  129. Specifies the exact size and position of the control. The Dimension property is available for many controls, and is also available for graphics window objects when running Quattro Pro in Developer mode (/D). For information about using Developer mode, see "Working in Developer mode." If you start Quattro Pro in Developer mode (with the /D parameter), the Dimension property will also be available for drawn chart objects.
  130.  
  131.   X Pos-sets the distance in pixels between the left edge of the object and the left side of the window
  132.   
  133.   Y Pos-sets the distance in pixels between the top edge of the object and the bottom edge of the window's title bar (or from the top of the chart background in the case of a drawn object)
  134.   
  135.   Width-sets the width of the object in pixels
  136.   
  137.   Height-sets the height of the object in pixels
  138.   
  139. Disabled property
  140.  
  141. Disables the control in the same manner as the Grayed property, but does not dim the control. The Disabled property is available for all controls.
  142.  
  143. Draw beveling property
  144.  
  145. This property is associated with the bitmap button. When it is set to Yes, a border around the bitmap gives the button a 3-D appearance. When it is set to No, the 3-D border does not display.
  146.  
  147. Draw to right property
  148.  
  149. Sets the position of check box and radio button text. If set to Yes, text is placed to the right of the check box or radio button; if set to No, text is placed to the left. The default is Yes.
  150.  
  151. Edit disabled property
  152.  
  153. Disables typing in a combo box or file control.
  154.  
  155. Edit length property
  156.  
  157. Specifies the maximum number of characters allowed in an edit field, combo box, or spin control.
  158.  
  159. Enabled property
  160.  
  161. Enables controls that have been turned off with the Disabled property or by setting Enabled to No. It is used by link commands and does not appear in the control's properties. This property is available for all controls.
  162.  
  163. Field type property
  164.  
  165. Determines the allowable type of input to the edit field. After changing Field type to Integer, properties change to Edit integer.
  166.  
  167.   Integer-restricts user entry to integers. This adds three properties to the edit field properties (which is renamed Edit integer). Minimum defines the lowest acceptable value users can enter. Maximum defines the highest acceptable value a user can enter. Default defines the initial value of the edit field.
  168.   
  169.   String-accepts any text a user enters (including numbers); this is the default edit field type
  170.   
  171.   Real-accepts any number or formula
  172.   
  173.   Block-accepts only cell addresses or block coordinates
  174.   
  175.   Hidden-accepts any text, but displays a pound sign (#) for each character instead of the actual character. This is handy when users are entering passwords.
  176.   
  177. 56 colors property
  178.  
  179. Specifies whether the color control should display 56 colors or 16 colors.
  180.  
  181. File type list property
  182.  
  183. Specifies the file types that the browse button can display.
  184.  
  185.   Edit field-where you enter the name of the types list to use, or select it from the list
  186.   
  187.   List box-lists the file types you can use (only toolbar files, only database files, and so on)
  188.   
  189. Fill color property
  190.  
  191. Specifies the color inside a Rectangle control. Enable the Use system color option if you want to use the system color for the object. For example, these are two default system colors: notebook sheet tabs are white, and rectangles in a dialog boxes are gray with a black frame.
  192.  
  193. Frame color property
  194.  
  195. Specifies the color of a rectangle frame.
  196.  
  197. Grayed property
  198.  
  199. Specifies whether the control can be used. When set to Yes, the control appears dimmer to indicate it is unavailable. This property is available for many controls. When you set the Grayed property for a control to Yes, you also have to set its Disabled property to No.
  200.  
  201. Grid options property
  202.  
  203. Shows or hides a grid in the dialog window, sets the number of pixels between grid lines, and turns Snap to grid on or off. The grid is an aid in laying out controls.
  204.  
  205.   Grid size-sets the distance in pixels between gridlines
  206.   
  207.   Show grid-displays the grid to help you position objects in the window
  208.   
  209.   Snap to grid-snaps the sides of objects to the grid when you move, resize, or align objects
  210.   
  211. Group text property
  212.  
  213. Specifies a title for a group box.
  214.  
  215. Help line property
  216.  
  217. A brief description that appears in a QuickTip when the control is selected by the user. The Help line property is available for many controls. For toolbar controls, this field sets the QuickTip text that appears when you point to a toolbar button.
  218.  
  219. Hidden property
  220.  
  221. Specifies whether the control is visible in the dialog box. When set to No, the control is hidden to the user but still displays when editing. The Hidden property is available for every control.
  222.  
  223. History list property
  224.  
  225. Set this to Yes to have a combo box store a history of the values entered in its edit field; this supersedes the settings of the List property. For information about the List property, see "List property."
  226.  
  227. Interval in units property
  228.  
  229. Used with the Units in milliseconds property to specify the interval at which the time control generates the timer event. The Interval in units property determines how frequently the timer refresh event will be generated; the Units in milliseconds property determines the number of milliseconds represented by each unit. For information about using the Units in milliseconds property, see "Units in milliseconds property."
  230.  
  231. Label font property
  232.  
  233. Determines dialog label typeface and point size, and whether it is bold, italic, underlined, or strikeout.
  234.  
  235. Label text property
  236.  
  237. Specifies the text appearing on a button or other control. When a button leads to another dialog box, you should end its text with an ellipsis (...).
  238.  
  239. List property
  240.  
  241. Specifies a block containing a list to appear in a combo or list box, or selects one of Quattro Pro's predefined lists. Available predefined lists include Fonts, DriveList, BitmapList, and DBFileType. If you specify a block and the block contents are changed after the List property has been set, the List settings will not be updated until the dialog box is opened again or an EXECUTE link command is used to refresh the list box.
  242.  
  243. For information about the File type list property, see "File type list property."
  244.  
  245. List length property
  246.  
  247. Specifies the maximum number of history list entries in a combo box. For information about using history lists, see "History list property."
  248.  
  249. Maximum property
  250.  
  251. Determines the highest number that can be entered in a spin control or an edit field (when its Field type property is set to Integer).
  252.  
  253. Minimum property
  254.  
  255. Determines the lowest number that can be entered in a spin control or an edit field (when its Field type property is set to Integer).
  256.  
  257. Name property
  258.  
  259. Used to identify a control or drawn chart object. It can also be used by macros, link commands, and @functions to select the object, change its property settings, or read its property settings. The Name property is available for many objects. If you start Quattro Pro in Developer mode (with the /D parameter), the Name property will also be available for many graphics window objects. For information about using Developer mode, see "Working in Developer mode."
  260.  
  261. Number of columns property
  262.  
  263. Specifies how many columns of items appear in a list box. The default is one column.
  264.  
  265. Object help property
  266.  
  267. Determines the contents of Object Help for the selected object. Use the Object help property to create help for the objects in custom dialog boxes and toolbars. Note that the combined total of all characters in the three Object help fields cannot exceed 194 characters.
  268.  
  269.   The Object help title field sets the title of the object's help dialog.
  270.   
  271.   The Object help text field sets the text that appears in the object's help dialog when you right-click the object in a dialog. (For toolbar buttons, the Help line property sets the QuickTip that displays when the mouse is on the button.)
  272.   
  273.   The WinHelp context field lets you specify a WinHelp context string for a Help topic instead of using the title and text fields. The context string must be followed immediately by the @ symbol and help filename. You can then right-click the control to display Help for it. (For more information about creating Help files, see the SDK documentation.)
  274.   
  275. Object ID property
  276.  
  277. Assigns an identification number for controls and drawn chart objects. It shows the order in which the controls were created. The Object ID property is available for many objects. You can use the Object ID to identify objects in a macro command, link command, or @function. You cannot change the Object ID of an object. It is a read-only property. If you start Quattro Pro in Developer mode (with the /D parameter), the Object ID property will also be available for drawn chart objects. For information about using Developer mode, see "Working in Developer mode."
  278.  
  279. Ordered property
  280.  
  281. Sorts list box and combo box entries alphanumerically in ascending order. Setting it to No does not reset the order of a list that has been sorted.
  282.  
  283. Page list property
  284.  
  285. This property displays commands for creating, removing, and reordering tabs.
  286.  
  287.   Sheet name-indicates the tab to add or remove
  288.   
  289.   Sheet list-lists the tabs already attached to the tab control. You can select an entry in this list to move it or insert new tabs before it.
  290.   
  291.   Insert-adds the tab indicated in Sheet name before the tab name selected in Sheet list
  292.   
  293.   Add-adds the tab indicated in Sheet name after the tab name selected in Sheet list
  294.   
  295.   Delete-removes the selected tab name from the tab control
  296.   
  297.   Move up or Move down-changes the position of the tab name selected in Sheet list
  298.   
  299. Page name text property
  300.  
  301. The Page name text property is a property of a tab that lets you rename a tab in a tab control. You can also rename a tab in the Dialog Designer by double-clicking it and entering a new name.
  302.  
  303. Parameters property
  304.  
  305. Controls the range of values a scroll bar accepts, and specifies how quickly the user can change the scroll bar's value.
  306.  
  307.   Min-sets a horizontal bar's value when its scroll box is as far left as possible; vertical bars are set to this value when their scroll box is at the top of the scroll bar
  308.   
  309.   Max-sets a horizontal bar's value when its scroll box is as far right as possible; vertical bars are set to this value when their scroll box is at the bottom of the scroll bar
  310.   
  311.   Line-sets the amount the scroll bar's value changes when a user clicks a scroll arrow
  312.   
  313.   Page-sets the amount the scroll bar's value changes when a user clicks above or below the scroll box on a vertical scroll bar, or to the left or right of the scroll box on a horizontal scroll bar
  314.   
  315.   Time-sets the amount of time in milliseconds that Quattro Pro waits before moving the scroll box in response to a user action (clicking a scroll bar, holding down the mouse button while pointing to a scroll arrow, and so on)
  316.   
  317. Position adjust property
  318.  
  319. Specifies how a control moves when its parent control is resized. The Position adjust property is available for every control.
  320.  
  321.   Depend on parent-locks each edge of the child control in place so that when the parent control is resized, the child control resizes proportionally
  322.   
  323.   Center horizontally-centers the control between the left and right sides of the parent control whenever the parent control is resized
  324.   
  325.   Center vertically-centers the control between the top and bottom of the parent control whenever the parent control is resized
  326.   
  327.   Position relative to-positions the child control relative to the sides of the parent control. Check Top, Bottom, Left, or Right to unlock edges of the child control. If you move an edge of the parent control, unlocked edges of the child control move instead of resizing.
  328.   
  329. For information about using parent and child controls, see "Working with child controls in dialog boxes."
  330.  
  331. Process value property
  332.  
  333. Setting this property to Yes lets the macro command {DODIALOG} access the control's value. The Process value property is available for many objects.
  334.  
  335. Rectangle style property
  336.  
  337. Determines the type of rectangle:
  338.  
  339.   Plain-draws the rectangle as a solid box without a frame
  340.   
  341.   Framed-draws a frame around the rectangle (the default). To set the color of this frame, use the Frame color property.
  342.   
  343.   Beveled out-displays a slightly raised rectangle
  344.   
  345.   Beveled in-displays a slightly recessed rectangle
  346.   
  347.   Transparent-displays a clear, unfilled rectangle. This is handy for grouping controls together without displaying the rectangle they are attached to.
  348.   
  349.   Engraved-displays a rectangle with an etched frame
  350.   
  351. To change a rectangle's color, right-click the rectangle and choose the Rectangle Properties command, then click Color.
  352.  
  353. Select location property
  354.  
  355. This property is associated with File controls. When it is set to Yes, clicking the browse button on the file control activates the Select folder dialog box, which allows users to select a location in the directory tree.
  356.  
  357. The Select folder dialog box is akin to the one encountered during setup of WordPerfect Office which prompts for a specific destination for installing the applications. If users click the Browse button during installation, the Select folder dialog box displays so that users can choose a drive and folder.
  358.  
  359. Selected property
  360.  
  361. Indicates numerically which radio button in a group box is chosen or which item in a list box is highlighted. Numbers are sequential (such as 0, 1, 2, 3,...9). If the first item is chosen or highlighted, Selected is set to 0. Choosing or highlighting the second item sets Selected to 1, and so on.
  362.  
  363. Selection text property
  364.  
  365. Returns the text of an item selected in a list box.
  366.  
  367. Show property
  368.  
  369. The opposite of Hidden. Set it to No to hide the control from the user. It is used by link and macro commands and does not appear in the control's properties.
  370.  
  371. Show frame property
  372.  
  373. Displays a box around an edit field or spin control. The default is On.
  374.  
  375. Show time property
  376.  
  377. If set to Yes, the system time displays on the face of the time control.
  378.  
  379. Tab stop property
  380.  
  381. Determines whether the control can be activated by Tab. The Tab stop property is available for many controls.
  382.  
  383. Terminate dialog property
  384.  
  385. If set to Yes, pressing ENTER triggers the default button (usually OK). This property is available for combo boxes, edit fields, file controls, and spin controls. When set to No, keeps the dialog box from activating its default button when the user presses ENTER in an edit field.
  386.  
  387. Text draw flags property
  388.  
  389. Determines where the text appears in relation to its background (for labels, check boxes, and radio buttons) or in relation to the button itself (for push buttons and bitmap buttons).
  390.  
  391. You can enter special text characters in a label to change its appearance:
  392.  
  393.   \n-makes characters to the right of it display on a second line. This only works when the Single line check box (in the Text draw flags property) is disabled.
  394.   
  395.   \t-inserts a tab into the text (a fixed amount of space that is handy for lining up columns of text).
  396.   
  397.   \\-inserts a backslash (\) into the text. You can use this to enter \n or \t into a label as normal text.
  398.   
  399.   &-makes the character to the right of it appear underlined in the text (the ampersand does not appear). This is handy for naming controls. Use only one & character; if you use two, the & character appears underlined in the text.
  400.   
  401. Other options you can select include the following:
  402.  
  403.   Apply check box-enables the Text draw flags properties you have selected.
  404.   
  405.   Wrapping text area:
  406.   
  407.   Single line-specifies that the text appears on one line
  408.   
  409.   Word break-specifies word-wrapped lines (that is, lines of text that break between words, instead of in the middle of words)
  410.   
  411.   Vertical position area:
  412.   
  413.   Top-places text flush against the top edge of the label background
  414.   
  415.   Center vertically-centers the text between the top and bottom of the background. It does not affect the horizontal position of the text
  416.   
  417.   Bottom-places text flush against the bottom of the background
  418.   
  419.   Horizontal position area:
  420.   
  421.   Left-places text flush against the left side of the label background
  422.   
  423.   Center horizontally-centers the text between the left and right sides of the label background. It does not affect the vertical position of the text
  424.   
  425.   Right-places text flush against the right side of the label background
  426.   
  427. Timer on property
  428.  
  429. Turns timer on or off. Timer specifies whether the time control generates time events at regular intervals.
  430.  
  431. Title property
  432.  
  433. Determines the dialog box title or file control title displayed to the user. For file controls, this property assigns a title to the dialog box that opens when the Browse button is clicked.
  434.  
  435. Units in milliseconds property
  436.  
  437. Controls timer intervals together with the Interval in units property. The Interval in Units property determines how frequently the timer refresh event will be generated; the Units in milliseconds property determines the number of milliseconds represented by each unit. For information about Interval in units, see "Interval in units property."
  438.  
  439. Value property
  440.  
  441. The current setting of a control. This varies from control to control. See the control descriptions for a discussion of their values. Value does not appear in the properties; you can access it using macros, link commands, or @functions. Most controls have a Value property.
  442.  
  443.  
  444.  
  445.  
  446.