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:
parent
e58e3f67aa
commit
17d5429276
@ -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++ )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user