Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
bushman is currently offline  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

 
Read Message
Read Message
Read Message
Previous Topic: Button font
Next Topic: Switch skin
Goto Forum:
  


Current Time: Mon Aug 04 16:30:15 CEST 2025

Total time taken to generate the page: 0.08052 seconds