jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

UIA Expand / Collapse Support #39

Closed leviwilson closed 11 years ago

leviwilson commented 11 years ago

I've added the ability for a UIA control to expand or collapse any child item (that implements the ExpandCollapsePattern. This allows you to use a SelectList with a TreeView control, since TreeView items implement the SelectionPattern and its children implement SelectionItemPattern just as a ComboBox control does.

At some point it might make sense to make a specific TreeView control that derives from SelectList, but currently SelectList has methods specific to a ComboBox control (#list_item_height, #scroll_to_item, #get_top_index, etc.).