new wxStaticText(this, wxID_ANY, text, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE | wxSTATIC_BORDER);
This will fail with "operator '|': deprecated between enumerations of different types"
Need to add "wxALLOW_COMBINING_ENUMS(wxAlignment, wxBorder)" in defs.h
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Looks like that one 'allow' wasn't enough (I must have forgotten to unsuppress the warning when testing earlier, sorry!)
In my code, I also needed to add:
wxALLOW_COMBINING_ENUMS(wxSizerFlagBits, wxAlignment)
wxALLOW_COMBINING_ENUMS(wxSizerFlagBits, wxDirection)
wxALLOW_COMBINING_ENUMS(wxSizerFlagBits, wxStretch)
because of my use of wxRESERVE_SPACE_EVEN_IF_HIDDEN on sizers.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Thanks, I'll create a new issue for this because I'd actually already backported this one to 3.2 (but it didn't get closed because only commits to master really close issues, argh).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #22656 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()