Design for the OAContractorPage2 Part

As shown below, this part forms the body of the OAContractorView History page.

Figure 6. The OAContractorView History Page (OAContractorPage2)

OAContractorPage2 composition illustration

This part shows use of the following:


Related references
Design of Visual Parts for OASearch
Design for the OAContractorView Part

Design for the OAMorphableSpinButton Part

This sample is a simple custom visual part derived from INumericSpinButton. This part represents only one way to resolve these incompatibilities:

This problem can also be solved with handwritten code, but in this case we want to make an attribute-to-attribute connection between the current value on the spin button and the yearsExp attribute of an OASkill* part.

Relative to INumericSpinButton, OAMorphableSpinButton has one additional attribute, valueAsString. As part of keeping the two value attributes synchronized, the class also contains an overridden set member function for the inherited value attribute.


Related concepts
About Implementing Custom Visual Parts

Related procedures
Deriving from Visual Classes
Creating the OAMorphableSpinButton Part

Related references
Design of Visual Parts for OASearch
Design for the OAContractorPage3 Part