Lazarus

Programming => Packages and Libraries => FPSpreadsheet => Topic started by: Zoran on June 09, 2019, 10:52:47 pm

Title: Reordering worksheets
Post by: Zoran on June 09, 2019, 10:52:47 pm
Hello,

How can I programmatically move a worksheet to another position within a workbook?

I can't find any move method, or setting worksheet index, or similar; is there any way to reorder worksheets?
Title: Re: Reordering worksheets
Post by: wp on June 10, 2019, 01:17:11 am
In the new revision, TsWorksheet has a property Index which you can set to its new position in the workbook. Notification of the visual controls should work, i.e. the tabs of the TabControl will rearrange accordingly.
Title: Re: Reordering worksheets
Post by: Zoran on June 11, 2019, 11:06:07 am
It doesn't matter if a feature had existed or not before the question, when a library's maintainer is Werner.
It is enough to ask if some feature exists, you get the positive answer!
 :)

Thank you very much!
TinyPortal © 2005-2018