Page 1 of 1

How to set the current item in the active panel

Posted: Sun 11 Aug, 2019 14:43
by Spire
I'm writing a plug-in that needs to set the current item in the active panel. Reading the documentation, I can see how to get the index of the current item (call PluginStartupInfo::PanelControl(PANEL_ACTIVE, FCTL_GETPANELINFO, ...) and then check PanelInfo::CurrentItem); however, I can't find any information on how to set it.

Is there any way to do what I'm trying to do?

How to set the current item in the active panel

Posted: Sun 11 Aug, 2019 15:19
by DrKnS
  1. PanelRedrawInfo pri {sizeof(pri)};
  2. pri.CurrentItem = 42;
  3. PanelControl(PANEL_ACTIVE, FCTL_REDRAWPANEL, 0, &pri);

How to set the current item in the active panel

Posted: Sun 11 Aug, 2019 15:41
by Spire
That worked; thanks!