Constructing the OAContractorPage1 Part


OAContractorPage1 composition illustration

This part forms the contents of the first 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 21 rows and 11 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 10. Label Parts for OAContractorPage1
    Add... From... To... Change it to read...
    IGroupBox* (2,2) (8,10) Name
    IStaticText* (5,3)
    Last
    IStaticText* (7,3)
    First
    IStaticText* (7,7)
    MI
    IGroupBox* (10,2) (18,10) Home Address
    IStaticText* (13,3)
    Street
    IStaticText* (15,3)
    City
    IStaticText* (15,7)
    State
    IStaticText* (17,3)
    Postal Code
    IStaticText* (20,2) (20,3) Phone

    Align the parts labeled MI and State to the right.

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

    Table 11. Entry Parts for OAContractorPage1
    Add... From... To... Name it... Limit of...
    IEntryField* (5,5) (5,9) LastNameEF 15
    IEntryField* (7,5)
    FirstNameEF 10
    IEntryField* (7,9)
    MiddleInitEF 1
    IEntryField* (13,5) (13,9) StreetEF 25
    IEntryField* (15,5)
    CityEF 15
    IEntryField* (15,9)
    StateEF 2
    IEntryField* (17,5)
    ZipEF 5
    IEntryField* (20,5) (20,7) PhoneEF 13

    In all entry 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 LastNameEF, StreetEF, and PhoneNumEF, set the group style property on.

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


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
IEntryField
IGroupBox
IMultiCellCanvas