Ticket #9591: treesampletransp.patch

File treesampletransp.patch, 3.0 KB (added by malcompl, 10 years ago)
  • samples/treectrl/state1.xpm

     
    1414"6. c #A6A800",
    1515"M  c #EDF00E",
    1616"$. c #A6A802",
    17 "   c #FFFFFF",
     17"   c None",
    1818"H  c #DEE104",
    1919"0  c #F5F802",
    2020"o  c #FCFF22",
  • samples/treectrl/state2.xpm

     
    1313"'  c #3F8620",
    1414"x  c #9FD488",
    1515"6. c #37751C",
    16 "   c #FFFFFF",
     16"   c None",
    1717"A  c #8CCB71",
    1818"#  c #98D07F",
    1919"5. c #3A7C1E",
  • samples/treectrl/state3.xpm

     
    1717"0  c #C62B2B",
    1818"$  c #DF7A7A",
    1919"t  c #D14949",
    20 "   c #FFFFFF",
     20"   c None",
    2121"o. c #962020",
    2222"&. c #B82C2C",
    2323"p  c #E8A1A1",
  • samples/treectrl/state4.xpm

     
    1212"=. c #2C67B8",
    1313"|  c #2760AD",
    1414".. c #3672C5",
    15 "   c #FFFFFF",
     15"   c None",
    1616"U  c #548AD4",
    1717"s  c #2A6AC1",
    1818"%  c #3475CD",
  • samples/treectrl/state5.xpm

     
    77"O c #3C3C3C",
    88"l c #080808",
    99"w c #353535",
    10 "  c #FFFFFF",
     10"  c None",
    1111"u c #010101",
    1212"C c #101010",
    1313"< c #1F1F1F",
  • samples/treectrl/treetest.cpp

     
    925925    }
    926926    else
    927927    {
    928 #if 0
    929         int width  = ::GetSystemMetrics(SM_CXMENUCHECK),
    930             height = ::GetSystemMetrics(SM_CYMENUCHECK);
    931 #else
    932         int width = 16;
    933         int height = 16;
    934 #endif
     928        wxRendererNative& renderer = wxRendererNative::Get();
    935929
     930        wxSize size(renderer.GetCheckBoxSize(this));
     931
    936932        // make an state checkbox image list
    937         states = new wxImageList(width, height, true);
     933        states = new wxImageList(size.GetWidth(), size.GetHeight(), true);
    938934
    939         wxBitmap checkBmp(width, height);
    940         wxRect rect (0, 0, width, height);
     935        wxBitmap checkBmp(size.GetWidth(), size.GetHeight());
     936        wxRect rect(size);
    941937
    942         wxRendererNative& renderer = wxRendererNative::Get();
    943 
    944938        // create no checked image
    945939        {
    946940            // first create bitmap in a memory DC
     
    955949        // create checked image
    956950        {
    957951            wxMemoryDC memDC(checkBmp);
     952            memDC.Clear();
    958953            renderer.DrawCheckBox(this, memDC, rect, wxCONTROL_CHECKED);
    959954        }
    960955