| 746 | } |
| 747 | |
| 748 | void ChangeTab(size_t tabIndex) |
| 749 | { |
| 750 | if (page == static_cast<int16_t>(tabIndex) && !widgets.empty()) |
| 751 | return; |
| 752 | |
| 753 | page = static_cast<int16_t>(tabIndex); |
| 754 | currentFrame = 0; |
| 755 | RefreshWidgets(); |
| 756 | |
| 757 | invalidate(); |
| 758 | onResize(); |
| 759 | onPrepareDraw(); |
| 760 | WindowInitScrollWidgets(*this); |
| 761 | invalidate(); |
| 762 | |
| 763 | InvokeEventHandler(_info.Owner, _info.Desc.OnTabChange); |
| 764 | } |
| 765 | |
| 766 | const CustomWindowInfo& getInfo() const |
| 767 | { |
no test coverage detected