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:
@@ -1237,6 +1237,7 @@ bool wxSystemColourProperty::QueryColourFromUser( wxVariant& variant ) const
|
|||||||
|
|
||||||
wxColourData data;
|
wxColourData data;
|
||||||
data.SetChooseFull(true);
|
data.SetChooseFull(true);
|
||||||
|
data.SetChooseAlpha(GetAttributeAsLong(wxPG_COLOUR_HAS_ALPHA, 0) != 0);
|
||||||
data.SetColour(val.m_colour);
|
data.SetColour(val.m_colour);
|
||||||
for ( int i = 0; i < 16; i++ )
|
for ( int i = 0; i < 16; i++ )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user