TMSFMXNavBarPanel sorting issue

Hello,

I'm creating TMSFMXNavBarPanels at design time and I want to give them a fixed sort order in the buttons of the NavBar. But I can't find any editor, listview or property, where I can influence the position of the panel's buttons. I get them always from the bottom to the top in order of creation. The first one created is placed at the bottom of the NavBar, the next one above, and so on.
Where/how can I give to the panel buttons my favorite order and move them up and down as desired?

Thanks

PS. I can set a different PanelIndex to each of the NavBarPanels, but this does not influence the position withing the NavBar controller

Hi, the code below works as expected

  TMSFMXNavBar1.BeginUpdate;
  TMSFMXNavBarPanel2.PanelIndex := 0;
  TMSFMXNavBarPanel1.PanelIndex := 1;
  TMSFMXNavBar1.EndUpdate;

Hi Pieter.

Thanks for bringing me to the right path.
Setting the PanelIndex property at design time doesn't change the position but setting it at runtime by updating the PanelIndex works.

Kind regards

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.