Constructing the OAContractorPage2 Part


OAContractorPage2 composition illustration

This part forms the contents of the second page in the OAContractorView notebook. You construct this part first; eventually, you embed this part in the OAContractorView composite.

  1. Create a visual part as follows:

    The part opens in the Composition Editor.

  2. For this part, the client area requires 9 rows and 7 columns. Make the following expandable:

  3. Add parts that require labels to the client area as follows. Shorthand used in these tables corresponds to (rowNumber, columnNumber). Where an entry in the table is blank, the value is optional.

    Table 12. Label Parts for OAContractorPage2
    Add... To... Change it to read...
    IStaticText* (4,2) Start Date
    IStaticText* (6,2) End Date
    IStaticText* (8,2) Current Contract

  4. An an ICheckBox* part to cell (2,6). Name it ActiveStatusCB; change its label to read Active.

  5. Add entry parts to the client area as follows:

    Table 13. Entry Parts for OAContractorPage2
    Add... To... Name it... Limit of...
    IEntryField* (4,4) StartDateEF 8
    IEntryField* (6,4) EndDateEF 8
    IEntryField* (8,4) ContractEF 6

  6. Add an IPushButton* part to cell (8,6). Name it BrowsePB; change its label to read Browse....

  7. In the check box, entry field, and push button parts, set the tabStop style property on. Make sure the parts are arranged in the appropriate depth order. (If necessary, use the parts list to reorder them.)

    In ActiveStatusCB, set the group style property on.

  8. Promote the text and textLength attributes of all IEntryField* parts.

  9. Promote the buttonClickEvent feature of BrowsePB.

  10. Promote the selected attribute of ActiveStatusCB.

  11. Connect parts as follows:

    Table 14. Connections for OAContractorPage2
    Connection number From Part, feature... To Part, feature...
    0 ActiveStatusCB, selected ContractEF, enabled
    1 ContractEF, textLength BrowsePB, enabled


Related procedures
Constructing the OAContractView Part
Constructing the OAContractorView Part
Constructing the OASkillView Part
Working with Parts in the Composition Editor
Editing Part Properties
Dropping Parts in the Composition Editor
About Promoting Part Features
Making Connections in the Composition Editor

Related references
ICheckBox
IEntryField
IMultiCellCanvas