Modifying a form so that it sizes an OLE custom control

About this task

You can edit the size properties for an OLE custom control using the properties box for the object or by setting property values in the Programmer's pane.

To edit the OLE custom control using the properties box

Procedure

  1. Open the form and click the custom control.
  2. Choose Applet - Object Properties.
  3. Choose one of the following in the properties box:
    • "Size object to window."
    • "Size object below field."
  4. Close the properties box.
  5. Save and close the form.

To edit the OLE custom control in the Programmer's pane

Procedure

  1. Open the form and click the OLE custom control. Properties for the custom control OLE application display in the Programmer's pane.
  2. Select "SizeToWindow" and double-click the value to toggle it to TRUE.
  3. Click outside the properties sheet to accept the change.
  4. Save and close the form.

Expansion properties of OLE custom controls

About this task

When you use the form to create a document, the control expands, based on the property you chose. Note the following:

  • The property you chose takes effect after you save and close the form or document.
  • If you chose "Size object to window," the following occurs:
    • When a user creates a document or opens an existing document in Edit mode, the custom control automatically expands to fill the entire application window.
    • If the document contains information below the custom control, the user cannot view that information while the custom control is expanded.
  • If you chose "Size object below field," the following occurs:
    • When a user creates a document or opens an existing document in Edit mode, the custom control automatically expands to fill the area of the Notes® window below the layout region. If the document does not contain a layout region, the custom control expands to fill the entire application window.
    • If the document contains information below the layout region, the user cannot see that information while the custom control is expanded.
    • If the document contains two or more layout regions, the custom control expands below the first layout region. The user cannot see the other layout regions.