How to achieve the following aims alltogether correctly?
- show close button, but only on the active tab (OptShowXButtons := atbxShowActive)
- but not on the last tab opened (don't close last opened tab), ie. with atbxShowNone depending on the TabCount
- After the tab originally had been created with a provisional caption text; somehow by AddTab(-1, 'something', ...
- then afterwards the app should be able to redefine the caption with another text ..... Data.TabCaption := 'yy'
Very Roughly condensed somehow like:
Data := FATtabs.AddTab(-1, 'something', ts, False, clSilver, FTabImageIndex);
FATtabs.OptShowXButtons := atbxShowNone; // init setting had been atbxShowActive
// and later, triggered from some event:
Data.TabCaption := 'yy';
Should that work?
At me (without code patch) it results in an unexpected rectangle calculation, see picture.