Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TAdvOfficeTabSet
How to set the first left displayed tab
How to set the first left displayed tab
When there are a lot of tabs in TAdvOfficeTabSet, it is now possible to programmatically set the first left displayed tab so the user immediately sees the tab you want to focus instead of requiring a lengthy scroll operation. This is done via the new AdvOfficeTabSet.ScrollPosition property.
Example:
var i: integer; begin AdvOfficeTabSet1.AdvOfficeTabs.Clear; // enable fast inserting of many tabs AdvOfficeTabSet1.BeginUpdate; for i := 0 to 50 do begin AdvOfficeTabSet1.AdvOfficeTabs.Add.Caption := ''Tab ''+ inttostr(i + 1); end; AdvOfficeTabSet1.EndUpdate; // first tab will be tab 25 AdvOfficeTabSet1.ScrollPosition := 25; end;