mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-28 10:45:31 +08:00
Update import
This commit is contained in:
+16
-9
@@ -6373,18 +6373,25 @@ GuiTabPageList
|
|||||||
tab->containerComposition->RemoveChild(value->boundsComposition);
|
tab->containerComposition->RemoveChild(value->boundsComposition);
|
||||||
value->tab = nullptr;
|
value->tab = nullptr;
|
||||||
|
|
||||||
if (items.Count() <= 1)
|
if (items.Count() > 1)
|
||||||
|
{
|
||||||
|
if (items.Count() > index + 1)
|
||||||
|
{
|
||||||
|
tab->SetSelectedPage(items[index + 1]);
|
||||||
|
}
|
||||||
|
else if (items.Count() == index + 1)
|
||||||
|
{
|
||||||
|
tab->SetSelectedPage(items[index - 1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GuiTabPageList::AfterRemove(vint index, vint count)
|
||||||
|
{
|
||||||
|
if (items.Count() == 0)
|
||||||
{
|
{
|
||||||
tab->SetSelectedPage(nullptr);
|
tab->SetSelectedPage(nullptr);
|
||||||
}
|
}
|
||||||
else if (items.Count() > index + 1)
|
|
||||||
{
|
|
||||||
tab->SetSelectedPage(items[index + 1]);
|
|
||||||
}
|
|
||||||
else if (items.Count() == index + 1)
|
|
||||||
{
|
|
||||||
tab->SetSelectedPage(items[index - 1]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GuiTabPageList::GuiTabPageList(GuiTab* _tab)
|
GuiTabPageList::GuiTabPageList(GuiTab* _tab)
|
||||||
|
|||||||
@@ -13598,6 +13598,7 @@ Tab Control
|
|||||||
bool QueryInsert(vint index, GuiTabPage* const& value)override;
|
bool QueryInsert(vint index, GuiTabPage* const& value)override;
|
||||||
void AfterInsert(vint index, GuiTabPage* const& value)override;
|
void AfterInsert(vint index, GuiTabPage* const& value)override;
|
||||||
void BeforeRemove(vint index, GuiTabPage* const& value)override;
|
void BeforeRemove(vint index, GuiTabPage* const& value)override;
|
||||||
|
void AfterRemove(vint index, vint count)override;
|
||||||
public:
|
public:
|
||||||
GuiTabPageList(GuiTab* _tab);
|
GuiTabPageList(GuiTab* _tab);
|
||||||
~GuiTabPageList();
|
~GuiTabPageList();
|
||||||
|
|||||||
Reference in New Issue
Block a user