Closed mkormout closed 6 years ago
Do you mean that you need an event firing before TChromeTabsList.Add
is executed? (in ChromeTabsClasses.pas)
No, I need to create TChromeTab and initialize its data property and other stuff before it's added to collection... I need to have all tabs in the collection fully initialized. Something like: TChromeTabsList.Add(atab: TChromeTab)
I don't understand. TChromeTab.data is for userdefined data. What should be initialized there before? On nil?
Actual situation:
tab := tabs.Add; //events are fired here -> data property is nil
tab.data := SomeData;
What I need is this:
tab := TChromeTab.Create();
tab.data := SomeData;
tabs.add(tab);
Or this:
tab := tabs.Add(SomeData); //events are fired here, but after data property initialization
Which event is triggered on tabs.Add? Which you need with .Data?
fe.: OnActiveTabChanged
try this:
Exclude ActivateNewTab from TChromeTabs.Options.Behavior
and
ct := ChromeTabs.Tabs.Add;
ct.Caption := ...;
ct.Data := ...;
ChromeTabs.ActiveTab := ct;
ok thx :)
Is that possible? Thank you! :)