Constructing the OAContractorPage3 Part


OAContractorPage3 composition illustration

This part forms the contents of the third 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 5 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 15. Label Parts for OAContractorPage3
    Add... To... Change it to read...
    IStaticText* (2,2) Skill Name
    IStaticText* (4,2) Experience
    IStaticText* (4,6) years

    Align the IStaticText* part labeled years to the right.

  4. Add an IComboBox* part to cell (2,4). Span it to (2,6). Name it SkillCB; add the following initial contents (or anything you want):

    Set the following properties:

    Promote the text and textLength attributes of SkillCB.

  5. Add an OAMorphableSpinButton* part to cell (4,4). Name it YearMSB; set the range from 0 to 30; set its initial value to 0. Promote the valueAsString attribute of YearsSB. Set the tabStop style property on.


Related procedures
Creating the OAMorphableSpinButton Part
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
IListBox
IMultiCellCanvas