The button UI state display is inconsistent with the Microsoft standard UI. (Issue #26560)

15 views
Skip to first unread message

NewSourceG

unread,
Jun 5, 2026, 5:38:55 AM (3 days ago) Jun 5
to wx-...@googlegroups.com, Subscribed
NewSourceG created an issue (wxWidgets/wxWidgets#26560)

Platform and version information

  • wxWidgets version :master [ddd2b3f]
  • wxWidgets port :wxMSW
  • OS:Win7 - Win11
  • Controls:wxButton

I found that the display effect of the wxButton is inconsistent with the standard button state display effect of Microsoft, as shown below.

MFC Demo

CMFCButton m_Button;
m_Button.SetTextColor(RGB(255, 0, 0));
1.gif (view on web)

QT Demo

 button = QPushButton("I Am QT Button")
 button.setStyleSheet("color: red;")
1.gif (view on web)

JAVA Demo

JButton button = new JButton("I Am JAVA Button");
button.setForeground(Color.RED);
1.gif (view on web)

wxWidgets Demo

wxButton* button = new wxButton( this, wxID_ANY, _("I Am wxButton"), wxDefaultPosition, wxDefaultSize, 0 );
button->SetForegroundColour( wxColour( 255, 0, 0 ) );
1.gif (view on web)

BUG

As shown in the effect in the image above, the text foreground color of wxButton is inconsistent with Microsoft standard buttons and other commonly used GUI windows. The color is not displayed when it should be. This has caused me great trouble and made it impossible for me to migrate from other GUI solutions to wxWidgets, because such a basic function is so inconsistent with common habits or standards.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26560@github.com>

VZ

unread,
Jun 5, 2026, 9:38:36 AM (3 days ago) Jun 5
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26560)

This looks like another duplicate of #26453.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26560/4632088851@github.com>

VZ

unread,
Jun 5, 2026, 9:38:39 AM (3 days ago) Jun 5
to wx-...@googlegroups.com, Subscribed

Closed #26560 as duplicate.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/26560/issue_event/26387039005@github.com>

Reply all
Reply to author
Forward
0 new messages