LOGIN    REGISTER

homepage

Smart PropertyGrid.MFC

Full keyboard management

As in every good windows control, it is possible for the user to manipulate the PropertyGrid only with the keyboard. Here is a table of all the keys managed by the control:

Key name Behaviour
Up and down arrows Moves the selection mark to the previous or next property respectively. It also moves the selected text in comboboxes and other inplace controls like radiobuttons for example.
Left and right arrows Like up and down arrows respectively except that if the selection is on a category or grouped property the item is collapsed or expanded.
Page up and page down Moves the selection mark one page up or one page down respectively.
Home Moves the selection mark to the first item.
End Moves the selection mark to the last item.
Enter As a general rule, it activates the inplace control of a property. If this inplace control already has the focus, it validates it.
Escape If an inplace editbox has the focus, the previous text is restored and the inplace control looses the focus.
TAB When a property item is selected, it moves the focus to a first subpart of the inplace control, then if hit again it moves the focus to a next subpart, and so on, then it focuses on the PropertyGrid again. When the PropertyGrid is in a dialog box, TAB also preserves browsing all the controls of the dialog. If Shift is used, it does the same but in reverse direction.
Delete If the selected item has an editbox, it deletes its content.
Alphanumeric If the selected property has an editbox, it gets the focus and the key typed is put inside.
Spacebar Like an alphanumeric key, except when the property has a checkbox, in which case it switches it, or if the property is a hotlink, in which case it activates it.
Plus and minus (numpad) When the selected item is a category or grouped property, it expands and collapses it respectively.
Alt+down and Alt+up arrows When the selected item is a combobox, it expands the listbox part.