Objective Views : Chapter 13 Dialogs : Component Property Sheet
Component Property Sheet
The component property sheet is a series of property pages that allow the user to edit the properties of one or more components. The CODCompPropSheet class encapsulates the functionality of the component property sheet. Each property page in the property sheet has a corresponding class. This section describes each class used to implement the component property sheet.
CODCompPropSheet
The component property sheet handles a series of property pages that allow the user to change the attributes of a component or set of components. The pages that appear in this property sheet vary depending on the type of properties that the selected components possess. For example, although a rectangle component can be surrounded by lines and filled with color, it cannot be filled with text. Consequently, there is no text page in the property sheet when a rectangle is the selected object.
Figure 91 – Component property sheet
CODDefPropSheet
The default property sheet shows a series of property pages like the pages in CODCompPropSheet. This sheet defines a set of default properties for new components. The default properties set the attributes of new components before they are placed on the canvas.
Figure 92 – Default property sheet
 
CODGeneralCompPP
The general property page appears for each component. This is where information such as the component type and its name appears.
Figure 93 – General property page
CODEditCompPP
The edit property page contains information about a component’s editing restrictions.From this page, the end-user can designate what functions can be performed on the selected component(s).
Figure 94 – Edit property page
 
CODLineCompPP
The line property page contains options the end-user can select to change the appearance of the lines that surround the selected component. The end-user can also set the color, style and width of the component in this dialog box.
Figure 95 – Line property page
CODLineStyleLB
The line style list box appears on the line property page. It displays choices for the style of the line.
CODLineSizeLB
The line size list box appears on the line property page. It displays choices for the line width.
CODFillCompPP
The fill property page contains options that determine how the fill of a component appears. The end-user can alter the color and optional hatching settings in this dialog.
Figure 96 – Fill property page
CODHatchLB
This list box appears in the fill property page. It displays the hatching options for a fill.
CODFontCompPP
From this page, the end user can set the font type, point, color and several other effects, including bold, italic, underline and strikeout.
Figure 97 – Font property page
CODFontListBox
This list box appears in the font property page. It displays the available True Type fonts.
CODSizeListBox
This list box appears in the font property page. It displays the available point sizes for a font.
CODLabelCompPP
The label property page addresses the orientation properties of labels. You can set a label so that it always appears in a certain position relative to its associated symbol. This property page allows the user to choose that location.
Figure 98 – Labels property page
CODPosSizeCompPP
The position and size property page shows the current position and size of a component.
Figure 99 – Position and Size property page
CODTextCompPP
The text component property page allows the user to change the following properties: text value, multi-line text, word break, horizontal alignment, and vertical alignment. The text value is a single-line text edit in which the user can enter a string. The multi-line checkbox toggles between multiple lines of text and single-line text. If multi-line is checked, then the vertical alignment fields are disabled. The horizontal and vertical alignment values are set using radio buttons.
Figure 100 – Text component property page