Fix choosing custom colour with opacity in wxColourProperty (wxPG).

Invoke colour dialog with opacity option enabled when wxColourProperty is used with alpha support enabled (wxPG_COLOUR_HAS_ALPHA attribute is set).
This commit is contained in:
Artur Wieczorek 2015-11-18 20:13:24 +01:00
parent e58e3f67aa
commit 17d5429276

View File

@ -1237,6 +1237,7 @@ bool wxSystemColourProperty::QueryColourFromUser( wxVariant& variant ) const
wxColourData data;
data.SetChooseFull(true);
data.SetChooseAlpha(GetAttributeAsLong(wxPG_COLOUR_HAS_ALPHA, 0) != 0);
data.SetColour(val.m_colour);
for ( int i = 0; i < 16; i++ )
{