Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Initializes tabs for the various pages. This should be done before
- // setting up the member callbacks.
- initialize_tabs(window);
- // Initializes initial values and sets up callbacks. This needs to be
- // done before selecting the initial page, otherwise widgets from other
- // pages cannot be found afterwards.
- initialize_members(window);
- assert(selector.get_item_count() == pager.get_layer_count());
- // Selects initial tab for each page and the initially displayed main
- // page. This should be done last after all initialization
- for(int i = 0; pager.get_layer_count(); ++i) {
- tstacked_widget* tab_pager = find_widget<tstacked_widget>(pager.get_page_grid(i), "tab_pager", false, false);
- if(tab_pager) {
- tab_pager->select_layer(i == index_.second ? index_.second : 0);
- }
- }
- selector.select_row(index_.first);
- pager.select_layer(index_.first);
Advertisement
Add Comment
Please, Sign In to add comment