Home » U++ Library support » Look and Chameleon Technology » How to chameleonize DockableCtrl tab button when in AutoHide mode? 
 ( ) 1 Vote
	| 
		
 |  
	
		
		
			| Re: How to chameleonize DockableCtrl tab button when in AutoHide mode? [message #42023 is a reply to message #41999] | 
			Tue, 11 February 2014 15:44    | 
		 
		
			
				
				
				  | 
					
						  
						bushman
						 Messages: 134 Registered: February 2009 
						
					 | 
					Experienced Member  | 
					 | 
		 
		 
	 | 
 
	
		Ok, I figured it out myself, by modifying TabCtrl::StyleDefault(), but you must do it before you create your DockWindow-derived app: 
 
// .h
MyApp : public DockWindow {
    ...
    static void SetTabCtrlStyle();
    ...
};
//  .cpp
void MyApp::SetTabCtrlStyle()
{
    TabCtrl::Style& tab_style = TabCtrl::StyleDefault().Write();
    
    // Set your TabCtrl style here
    tab_style...
}
GUI_APP_MAIN
{
    // set CtrlTab style BEFORE creating main app window
    MyApp::SetTabCtrlStyle();
    MyApp().Run();
}
 
 
Looks like DockableCtrl styling mechanism does not make its TabCtrl available for style manipulation, so one can't do "on-the-spot" styling over TabCtrl, right? 
 
BTW, how to style the tiny tab close button at the tab bar right top? 
 
Comments, suggestions welcome. 
Tks.
		
		
		[Updated on: Tue, 11 February 2014 19:01] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 09:17:07 CET 2025 
 Total time taken to generate the page: 0.05231 seconds 
 |