Setting Control Properties

Description

Some topics include: setting the field type, record list - list box, enabling allow shrinking, enabling always modeless, setting the display font, enabling and disabling miscellaneous properties, etc...

 

When you place a table field or calculated value on a layout, by default the new control has a Field Type of "Type-in Field". There are many other display modes for a control that provide special features.

 Enabling Allow Shrinking

  1. Select the control, choose Object > Properties and display the Setup tab.

  2. Check Allow Shrinking.

 Enabling Always Modeless

  1. Select the control, choose Object > Properties and display the Setup tab.

  2. Check Allow Modeless.

 Enabling Always on Top

  1. Select the control, choose Object > Properties and display the Setup tab.

  2. Check Always on Top.

 Setting the Display Font

  1. Select the control, choose Object > Properties and display the Font tab.

  2. Optionally, select a font from the Face list.

  3. Optionally, select or enter an integer value for the Size of the font.

  4. Optionally, check the Bold, Italic, Underline, and Strikeout style check boxes.

  5. Optionally, select a color from the Color list.

 Setting Border Attributes

 Setting Shadow Attributes

 Setting Fill Attributes

 Setting Text Alignment

  1. Select the control, choose Object > Properties and display the Format tab.

  2. Set the Horizontal Alignment by clicking Left, Center, or Right.

  3. Set the Vertical Alignment by clicking Top, Center, or Bottom.

  4. Optionally, check Word Wrap to allow text to use more than one line. You must resize the control to make the extra lines visible.

 Setting the Display Format

  1. Select the control, choose Object > Properties and display the Format tab.

  2. Enter or select a value in the Width field to set the number of display characters. This value includes the decimal point and numbers to the right of the decimal point.

  3. In the case of numeric fields, enter or select a value from the Decimal Places field.

  4. Optionally, select a Format Style. Refer to Display Formats.

 Setting the Position and Size

  1. Select the control, choose Object > Properties and display the Dimensions tab.

  2. Enter or select a value in the Left field to set the horizontal location of the control on the form.

  3. Enter or select a value in the Top field to set the vertical location of the control on the form.

  4. Enter or select a value in the Width field to set the width of the control on the form.

  5. Enter or select a value in the Height field to set the height of the control on the form.

  6.  Enabling Dynamic Control Resizing

    • The form's Window properties must have the following two settings in the size area.
      • Width = Use Form's Width

      • Height = Use Form's Height

    • Click the horizontal and vertical lines of the anchor to turn them on and off. There must always be one vertical (top or bottom) and one horizontal (left or right) anchor point turned on.

    • Anchors Selected
      Effect When Form Resizes
      Left, Top

      Unchanged

      Right, Bottom

      Moves right and down

      Right, Top

      Moves right

      Left, Bottom

      Moves down

      Left, Right, Bottom

      Stretches horizontally and moves down

      Left, Right, Top

      Stretches horizontally

      Right, Top, Bottom

      Stretches vertically and moves right

      Left, Right, Top, Bottom

      Stretches horizontally and vertically

 Changing the Field Description

  1. Select the control, choose Object > Properties and display the Setup tab.

  2. Optionally, change the Object Name. By default, the object name is the same as the table data field name. It is often useful to change this name to distinguish it from the underlying data field.

  3. Optionally, change the data Field that is bound to the control.

    • 1. Click the following to display the Field Select dialog box.

    • 2. Select the table from the Table list.

    • 3. Select the field from the Available Fields list.

    • 4. Click OK to continue or Cancel to discard your inputs.

  4. Optionally, change the variable that is bound to the control.

    • 1. Click the following to display the Field Select dialog box.

    • 2. To use an existing variable, select "Var" from the Table list.

    • 3. Optionally, click Add Variable to display the Add Variable dialog box. Specify the Scope, Data Type, and Name of the new variable and click OK.

    • 4. Select the variable from the Available Fields list.

    • 5. Click OK to continue or Cancel to discard your inputs.

  5. Optionally, change the calculated field that is bound to the control.

    • 1. Click the following icon to display the Field Select dialog box.

    • 2. To use an existing variable, select "Calc" from the Table list.

    • 3. Select the calculated field from the Available Fields list.

    • 4. Click OK to continue or Cancel to discard your inputs.

  6. Optionally, change the system field that is bound to the control.

    • 1. Click the following to display the Field Select dialog box.

    • 2. To use an existing variable, select "System" from the Table list.

    • 3. Select the system field from the Available Fields list.

    • 4. Click OK to continue or Cancel to discard your inputs.

  7. Optionally, change the Field-Type. Refer to Selecting a Field Data Control to understand the characteristics of the different options.

    • 1. Click the 'down arrow' icon to display the different control formats.

    • 2. Depending on the type of control selected, display the Choices tab and enter required information.

 Enabling and Disabling Miscellaneous Properties

  1. Select the control, choose Object > Properties and display the Setup tab.

  2. Optionally, check Read Only if you do not want the user to be able to change the value of the field.

  3. Optionally, clear Tab Stop if you do not want the user to be able to tab to the field.

  4. Optionally, check Always on Top if you want the field to always be on top of any other layered controls.

  5. Optionally, check Always Modeless if you want the user to be able to edit the field without putting it in change mode.

  6. Optionally, check Hide if you want to make the field invisible.

  7. Optionally, check Disable if you do not want the user to be able to edit or select the data in the field.

  8. Optionally, check Allow Shrinking if the field can be made smaller during printing.

  9. Optionally, check Don't Spell Check if you do not want the field to be eligible for spell checking.

 Specifying the Right-Click Menu

  1. Select the control, choose Object > Properties and display the Menus/Toolbars tab.

  2. Click the down arrow icon to select an existing toolbar from the Right-Click Menu list.

  3. Optionally, click Set All Fields to apply this toolbar to all fields on the form.

 Specifying a Help Topic

  1. Choose Object > Properties and display the Help Entry tab.

  2. Check Use Custom Help.

  3. Make a selection from the Help Source File list. The options are:

    • "Standard Windows Help File (.hlp file)"

    • "Compiled Windows Help File (.chm file)"

    • "Alpha Anywhere Help File"

  4. If you selected either "Standard Windows Help File (.hlp file)" or "Compiled Windows Help File (.chm file)", refer to Linking to a External Help File Topic.

  5. If you selected "Alpha Anywhere Help File", refer to Creating Alpha Anywhere Help Text.

 Providing Bubble Help

  1. Choose Object > Properties and display the Help Entry tab.

  2. Optionally, check Free form XDialog if you would like to add images or other Xdialog controls to the bubble help.

  3. If you checked Free form XDialog :

    • Enter Xdialog code into the  Bubble Help Text field.

    • Click Preview to see how the bubble help will appear.

  4. If you did not check Free form XDialog :

    • Optionally, enter the help text into the Bubble Help Text field.

    • Optionally, click Edit... to display the Bubble Help dialog box.

    • Enter the help text into the Bubble Help Text field.

    • Optionally, change the Font, Font Size,  Bold,  Italic, and  Underline field settings.

    • Optionally, enable word wrap by checking Word Wrap Text?.

    • Optionally, change the default line length by entering or selecting a new value in the Wrap Size field.

    • Click Preview to see how the bubble help will appear.

  5. Optionally, click Apply to all to set this as the bubble help for all fields on the form.

  6. Click OK to save your changes or Cancel to exit.

 Creating Flyover Effects

  1. Choose Object > Properties and display the Setup tab.

  2. Check Fly-over Effects and click Set Fly-over Appearance to display the Fly-Over Properties dialog.

  3. Expand the properties list as necessary and select the property you want to change.

  4. Select the fly-over value from the Property value list at the bottom of the dialog.

  5. Click OK to apply your changes or Cancel to quit without making any changes.