.NET color scheme?

BlitzMax Forums/Brucey's Modules/.NET color scheme?

JoshK(Posted 2009) [#1]
The property grid example has a menu option for a .NET color scheme, but no code to set it. Is this a supported feature? How can I view it?


Brucey(Posted 2009) [#2]
It would appear (from the C++ sample) that it simply sets the margin, caption background and line colours to 212,208,200.

Which doesn't seem very exciting, colour-wise, but I suppose it does the trick.

From the original sample - of which my port is incomplete :
    else if ( id == ID_COLOURSCHEME3 )
    {
        // .NET
        wxColour my_grey_1(212,208,200);
        wxColour my_grey_2(236,233,216);
        m_pPropGridManager->Freeze();
        m_pPropGridManager->GetGrid()->SetMarginColour( my_grey_1 );
        m_pPropGridManager->GetGrid()->SetCaptionBackgroundColour( my_grey_1 );
        m_pPropGridManager->GetGrid()->SetLineColour( my_grey_1 );
        m_pPropGridManager->Thaw();
    }



JoshK(Posted 2009) [#3]
Ha. I don't suppose there is any way to get that nice blue interface .NET uses is there?


Brucey(Posted 2009) [#4]
I imagine so. The UI colours are configurable.


JoshK(Posted 2009) [#5]
How?


plash(Posted 2009) [#6]
Google. wxWidgets has documentation, you know.


DavidDC(Posted 2009) [#7]
I'm not sure the relevant methods have been exposed yet - eg SetCaptionBackgroundColour


JoshK(Posted 2009) [#8]
That works. But how can you change the colors of menus and toolbars and stuff?


plash(Posted 2009) [#9]
Hmm, it sure would be nice to have a way to define the colors for the whole app..