Tabbers Index

BlitzMax Forums/MaxGUI Module/Tabbers Index

BLaBZ(Posted 2010) [#1]
How do you change the index number for a tab?

Thanks


jsp(Posted 2010) [#2]
All tabs are stored in an array "items".
All items in that array are from type TGadgetItem.
When you like to change the index, you need to alter the array.
To access the array:
MyTabber.items[index]


SebHoll(Posted 2010) [#3]
Eeeekkk... Don't do that - you'd be editing the internal data structure of the TGadget instance.

In short, there isn't a quick way to do this. You should call RemoveGadgetItem() and then InsertGadgetItem().

It would be easy to code up a helper MoveGadgetItem() function that would do this.