Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The FocusItem property gets and sets the item with focus. The value is a key to a single tree item. When the tree control has focus, the focus item appears with a dotted rectangle around it. While there can be any number of selected items, there is always just one focus item. This is important with regards toto Keyboard Navigation, since the user must be certain what the next keystroke will do.

...

Code Block
// Get the current focus item 
FocusItem = Get_Property(@Window:".OLE_TREE", "OLE.FocusItem") 

// Move focus to its parent 
ParentItem = Get_Property(@Window:".OLE_TREE", "OLE.ItemParent[":FocusItem:"]") 
Set_Property(@Window:".OLE_TREE", "OLE.FocusItem", ParentItem)

See Also

SelectedItemsTopItemShowFocusItem