Versions Compared

Key

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

Grid Item - Focus Property

Panel
bgColor#2c3c4c

True if this item is the focus item in the list

Member of Grid Item (PRIM_GDIT)

Data Type - Boolean

Details


Focus will return True if the item is the focus item in the list.
The focus item is the item in the visual list that will respond to keyboard entry.
There will only ever be one focus item.

Example

Finding the focusitem in a list

No Format
For each(#Item) in(#List.Items)

...


Continue (*Not #Item.Focus)

...


   #FocusItem <= #Item

...


Leave

...


Endfor

A simpler technique however is to use the FocusItem property of the list.

No Format
If (#List.FocusItem *isnot *Null)

...


   #FocusItem <= #List.FocusItem

...


Endif


See also

All Component Classes
Technical Reference