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
How to chameleonize DockableCtrl tab button when in AutoHide mode? [message #41999] Mon, 10 February 2014 12:56 Go to next message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
I tried modifying DockableCtrl::StyleDefault(), but there seems to be no style available for that, nor changing TabCtrl::StyleDefault() members appears to have any effect. I've peeked into DockableCtrl.h but couldn't find where you do it.

How do you make the tab button? Is there a way to chameleonize it?
Meanwhile I'll be looking for it in Docking package files.

tks.
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 next 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

Re: How to chameleonize DockableCtrl tab button when in AutoHide mode? [message #42025 is a reply to message #41999] Tue, 11 February 2014 19:17 Go to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
Ok, resolved. You use TabBar ctrl, which I didn't know exists. Then chameleonize it via TabBar::StyleDefault().Write(); Answer found in TabBarCtrlTest example in bazaar.

done.

[Updated on: Tue, 11 February 2014 19:20]

Report message to a moderator

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


Current Time: Wed Apr 17 01:11:09 CEST 2024

Total time taken to generate the page: 2.08085 seconds