Customize a Form

This article contains the following topics:
casm1401
This article contains the following topics:
HID_Add Controls
After you open the form you want to edit in WSP, you can use the toolbar, menu commands, and shortcuts to customize it. You can perform the following customization:
  • Insert a Control
  • Edit Control Properties
  • Modify Menu Bars
  • Modify Stylesheets
  • Modify Mouse-Over Preview Form
  • Modify Data Grid List on List Form
  • Modify Notebooks on Detail Form
  • Modify HTML and JavaScript Files
Add Controls
There are four ways to add a new control to the screen. To add any type of control to a form, follow one of these examples:
Example 1: Drag-and-Drop
  1. Click on the button in the Control Palette for the control that you want to add by holding down the left mouse button as you drag the control to the desired location on the form.
    Release the mouse button to place the control.
    The control is placed on the form.
  2. Save the form when you finish adding controls.
Example 2: Double-Click and Reposition
  1. Double-click the control you want to add in the Control Palette.
    The control appears on the form.
  2. Place the mouse pointer over the control, then click the left mouse button and hold it down as you reposition the control on the form.
    The control is placed in the desired location on the form.
  3. Save the form when you finish adding controls.
Example 3: Right-Click and Select
  1. Right-click the form at the location where you wish to add the control.
    A dropdown list appears.
  2. Select the control that you want to add from the dropdown menu.
    The control is placed on the form.
  3. Save the form when you finish adding controls.
Example 4: Controls Menu
  1. Click the Controls menu.
    Select the control you want to add from the dropdown menu..
    The control appears on the form.
  2. Place the mouse pointer over the control, then click the left mouse button and hold it down as you reposition the control on the form.
    The control is placed on the form.
  3. Save the form when you finish adding controls.
Arrange Controls on a Form
HID_Arrange Controls on a Form
You can reposition a control on a form by selecting and dragging it. This changes the control’s positioning properties, which set the relative placement of a control on a form.
To move controls:
  1. On the form, select the control you want to move by left-clicking on it and holding down the mouse button.
    Handles appear around the selection as the following example shows:
    Handle Bar
  2. Drag the selected control to a new position on the form and release the mouse button.
If necessary, choose Undo once from the Edit menu to reverse the most recent editing action, or choose Undo repeatedly to undo a series of actions.
Move a Control
HID_Move a Control
To move a control by dragging, place the mouse pointer over the control, then click the left mouse button and hold it down as you reposition the control on the form.
To resize a control by dragging it:
  1. Click to select the control.
  2. Place the mouse pointer over a resizing handle so that the pointer changes to Resize Arrow 1 , Resize Arrow 2 , Resize Arrow 3 , or Resize Arrow 4.
  3. Click the left mouse button and hold it down as you drag the control to the appropriate size.
Some controls, for example, conditionals, have a white border instead of black and cannot be resized. Also, you can change the height of only certain controls, for example, text boxes.