Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PathEdit Control

The PathEdit control displays an edit field that enables a user to select the end section of a path. This control supports entering the selected folder name or the entire path in the edit field. A user can also enter a Universal Naming Convention (UNC) path to a drive that has no drive letter. If the user enters an end segment for the path that is invalid for the present volume, PathEdit control cannot transfer the focus to the next control.

The PathEdit control, DirectoryCombo, and DirectoryList controls are associated with the same string valued property. That property is the path selected by the user. Enter the property's name into the Property column of the Control table. This property must have an initial value containing at least a one volume and one sublevel. Specify the initial value for the property in the Value column of the Property table.

This control is intended to be used on a Browse Dialog together with the PathEdit and DirectoryList controls.

Control Attributes

You can use the following attributes with this control. To change the value of an attribute using an event, subscribe the control to a ControlEvent in the EventMapping table and list the attribute's identifier in the Attribute column. Enter the identifier of the ControlEvent in the Event column.

Attribute identifierHexadecimal bitDescription
IndirectPropertyName This is the name of an indirect property associated with the control. If the Indirect attribute bit is set, the control displays or changes the value of the property having this name. If the Indirect attribute bit is set, this name is also the value of the property listed in the Property column of the Control table.
Position Position of the control in the dialog box.

Enter the control's width, height, and coordinates of the control's left corner into the Width, Height, X, and Y columns of the Control table. Use installer units for length and distance.

PropertyName This is the name of the property associated with this control. If the Indirect attribute bit is not set, the control displays or changes the value of the property having this name. This attribute is specified in the Property column of the Control table.
PropertyValue Current value of the property displayed or changed by this control. If the Indirect attribute bit is not set, this is the value of PropertyName. If the Indirect attribute bit is set, this is the value of IndirectPropertyName. If the attribute changes, the control reflects the new value.
Text To set the font and font style of a text string, prefix the string of displayed characters with {\style} or {&style}. Where style is an identifier listed in the TextStyle column of the TextStyle table. If neither of these are present, but the DefaultUIFont property is defined as a valid text style, that font will be used.

To specify the number of characters the user can enter, append {n} after any font specifications, where n is a positive integer.

Visible 0x00000000

0x00000001

Hidden control.

Visible control.

Include this bit in the bit word of the Attributes column in the Control table to make the control visible or hidden upon its creation.

You can also hide or show a control by using the ControlCondition table.

Enabled 0x00000000

0x00000002

Control in a disabled state.

Control in an enabled state.

Include this bit in the bit word in the Attributes column of the Control to enable the control on creation.

You can also enable or disable a control by using the ControlCondition table.

Sunken 0x00000000

0x00000004

Displays the default visual style.

Displays the control with a sunken, 3-D, look.

Include these bits in the bit word in the Attributes column of the Control table.

Indirect 0x00000000

0x00000008

The control displays or changes the value of the property in the Property column of the Control table.

The control displays or changes the value of the property that has the Identifier listed in the Property column of the Control table.

Determines if the property associated with this control is referenced indirectly.

RTLRO 0x00000000

0x00000020

Text in the control is displayed in left-to-right reading order.

Text in the control is displayed in right-to-left reading order.

RightAligned 0x00000000

0x00000040

Text in the control is aligned to the left.

Text in the control is aligned to the right.

 

Remarks

The PathEdit control is derived from the Edit control.

For compatibility with screen readers, when authoring a dialog box with a PathEdit control as the first active control, you must make the text field belonging to the edit field the first active control in the Dialog table. Since the static text cannot take focus, when the dialog box is created, the edit field will have the focus initially as intended; this ensures that screen readers show the correct information.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft