"dynamicTabOrder"

Allows to define the order behavior of tab elements when a fixed tab is used.

Synopsis

setValue(string shape, "dynamicTabOrder", string mode);

shape.dynamicTabOrder(string mode);

Parameter

Parameter Description
shape Name of the object
mode

Following modes are supported:

  • None => Normal behavior of the tab elements (default)

  • ShiftToLeft => All variable tabs are pushed to the left until enough space is available to display the selected tab element.

  • MidOrdered => All variable tabs are pushed to the left and right until enough space is available to display the selected tab element.

  • ShiftToRight => All variable tabs are pushed to the right until enough space is available to display the selected tab element.

Description

The property dynamicTabOrder allows defining the behavior for reordering tab elements in case of a tab element change. It can be defined whether the tab element are pushed to the left, right or a place is opened in the middle of the remaining tab elements.

The dynamic ordering of the tab elements uses an alphabetic order where the title of the tab element is used. dynamicTabOrder can only be used if the scrollerType "Popup" is used and at least one tab element has a fixed position.

example

In following example the first and second tab element use a fixed position and the ordering behavior is set to "ShiftToRight".

main()
{
  tab1.registerFixed(0,1);
  tab1.registerFixed(1,1);
  tab1.dynamicTabOrder("ShiftToRight");
}

Assignment

Tab