109 {
110 float total_size;
112
115
117 tab_controls_container.Update();
118
119 Widget tab_child = tab_controls_container.GetChildren();
120 while ( tab_child )
121 {
122 if ( tab_child.IsVisible() )
123 {
124 TextWidget tab_text = TextWidget.Cast( tab_child.FindAnyWidget( tab_child.GetName() + "_Title" ) );
125 int t_x, t_y;
126 tab_text.Update();
127 tab_text.GetTextSize( t_x, t_y );
129 tab_controls_container.Update();
130
132 }
133
134 tab_child = tab_child.GetSibling();
135 }
136
137 tab_child = tab_controls_container.GetChildren();
138
139 float x_f_c, y_f_c;
140 tab_controls_container.GetScreenPos( x_f_c, y_f_c );
141
142 while ( tab_child )
143 {
144 Widget tab_bg = tab_child.FindAnyWidget( tab_child.GetName() +
"_Background" );
145 tab_child.GetScreenPos(
x,
y );
146 tab_bg.SetPos( ( x_f_c -
x ), 0 );
147 tab_bg.SetSize( total_size, 1 );
148
149 tab_child = tab_child.GetSibling();
150 }
151
153
155 tab_controls_container.Update();
156 if (tab_controls_scroller)
157 tab_controls_scroller.Update();
159 }