panel.SetSelection

LuaFAR 3

panel.SetSelection


result = panel.SetSelection (handle, whatpanel, items, selection)

Parameters:
  handle:       panel handle, or nil
  whatpanel:    1=active_panel, 0=inactive_panel
  items:        integer (1-based item index),
                or table (array of item indexes)
  selection:    boolean

Returns:
  result: boolean

Far API used:
  PanelControl, FCTL_GETPANELINFO, FCTL_BEGINSELECTION,
  FCTL_SETSELECTION, FCTL_ENDSELECTION