failed to close the correct tab, always close the active one

Solved bugs are moved into this topic...
Post Reply
williamy
Posts: 6
Joined: 23.11.2020 15:20

failed to close the correct tab, always close the active one

Post by williamy »

Hi,
I am testing your TATGroups, and i noticed i am not able to close the right tab. and I checked the demo project which is included in your TATFlatControl project,
I mean the "demo_groups" project, the result is the same, failed to close the right tab.

e.g.
In your demo_groups project, therre are multiple tabs. .e.g "tabO, tabH". and currently, the "tabH" is active, after I clicked the close button on the "inactive" tab. the clicked tab will be replaced by the active tab. So, no matter which close button i click, always the active tab will be closed.

So, in the TabClose(), the parameter ATabIndex is the correct index number, the only problem is ... the tab is swapped automatically. is there anyway to close the tab properly?

thanks.
williamy
Posts: 6
Joined: 23.11.2020 15:20

Post by williamy »

@Alexey
uvviewsoft_
Posts: 17
Joined: 27.12.2020 08:31

Post by uvviewsoft_ »

sorry for delay....
I checked the demo_groups project now, it failed to compile and i fixed it now. on clicking X on tabs (demo_groups) i see the confirmation msgbox - yes/no/cancel, after i press Yes tab is closed ok. in all groups.

EDIT
i see the bug now. will fix it..
uvviewsoft_
Posts: 17
Joined: 27.12.2020 08:31

Post by uvviewsoft_ »

fixed it, bug was due to Lazarus DranNDrop activated when not needed.
removed line "FTabs.DragDrop:= dmAutomatic". must be dmManual.
williamy
Posts: 6
Joined: 23.11.2020 15:20

Post by williamy »

cool. verified. works perfectly. thanks.
Post Reply