Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
FPSpreadsheet
»
Reordering worksheets
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Blaise Pascal Magazine pu...
by
hansotten
[
Today
at 08:37:34 am]
LAMW - Linux Installation...
by
GetMem
[
Today
at 08:37:31 am]
Error Messages
by
speter
[
Today
at 08:35:33 am]
Indy: check if client is ...
by
krolikbest
[
Today
at 08:03:16 am]
[solved] OPM - LAMW insta...
by
Handoko
[
Today
at 07:48:02 am]
Configure data source via...
by
af0815
[
Today
at 07:29:15 am]
Problem with replacing a ...
by
egsuh
[
Today
at 05:26:51 am]
How to pass information f...
by
egsuh
[
Today
at 04:59:44 am]
custom list control
by
dsiders
[
Today
at 04:59:25 am]
LAMW: how to work with BL...
by
Ritt
[
Today
at 04:47:32 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Reordering worksheets (Read 748 times)
Zoran
Hero Member
Posts: 1652
Reordering worksheets
«
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?
Logged
wp
Hero Member
Posts: 8089
Re: Reordering worksheets
«
Reply #1 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.
Logged
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...
Zoran
Hero Member
Posts: 1652
Re: Reordering worksheets
«
Reply #2 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!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
FPSpreadsheet
»
Reordering worksheets
TinyPortal
© 2005-2018