Reordering tabs with the AllowDragReorder property

Published 24 JUN 2021 at 03:19:01PM

The next release of OpenInsight includes a new TABCONTROL property called ALLOWDRAGREORDER, which allows you to drag a tab to a new position within the control. It's a simple boolean property, and when set to True tabs may be dragged and reordered with the mouse - an image of the tab is moved with the cursor, and a pair of arrows are displayed to mark the potential insertion point.

Here's an example of a tab being dragged in the IDE:

  • The tabs may be scrolled while dragging by hovering outside either edge of the control.
  • This property is not supported for:
    • MultiLine tab controls
    • Vertically-aligned tab controls
  • The LISTBOX control also supports this property for reordering its items - see the "Order Tabs" dialog in the Form Designer for an example, or the list of types in the IDE's "Open Entity" dialog.

Comments

Original ID: revdevx.com/?p=3420
  • third_party_content/community/commentary/revdevx/19534.6382060185.txt
  • Last modified: 2024/01/29 20:23
  • by 127.0.0.1