Under Windows v3.3.0 filling of a wxComboBox triggers events (Issue #25553)

45 views
Skip to first unread message

rocrail

unread,
Jun 22, 2025, 10:49:58 AMJun 22
to wx-...@googlegroups.com, Subscribed
rocrail created an issue (wxWidgets/wxWidgets#25553)

Since wxWidgets release 3.3.0 the filling of wxComboBox triggers events which was not the case with version 3.2.x under Windows.
Under macOS and Linux the filling of wxComboBox does not trigger events.

wxWidgets: 3.3.0
Windows: 11 64bit


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25553@github.com>

VZ

unread,
Jun 23, 2025, 3:22:36 PMJun 23
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25553)

Sorry, but filling how and which events? I don't see any events generated when using "Add a few strings" button in the "combobox" page of the widgets sample, so could you please provide some way of reproducing the problem or, at the very least, explain what do you mean in details? TIA!


Reply to this email directly, view it on GitHub, or unsubscribe.

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

rocrail

unread,
Jun 24, 2025, 1:19:31 AMJun 24
to wx-...@googlegroups.com, Subscribed
rocrail left a comment (wxWidgets/wxWidgets#25553)

Maybe the SetStringSelection triggers the event:
`
m_gStates = new wxArrayString();

m_gState = new wxComboBox( m_EditPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );

m_gState->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( SVGEditorGen::onGState ), NULL, this );
m_gState->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( SVGEditorGen::onGStateValue ), NULL, this );


  m_gStates->Clear();
  m_gStates->Add( wxT("") );
  m_gStates->Add( wxT("red") );
  m_gStates->Add( wxT("green") );
  m_gStates->Add( wxT("yellow") );
  m_gStates->Add( wxT("white") );
  m_gStates->Add( wxT("straight") );
  m_gStates->Add( wxT("turnout") );
  m_gStates->Add( wxT("left") );
  m_gStates->Add( wxT("right") );
  m_gStates->Add( wxT("free") );
  m_gStates->Add( wxT("reserved") );
  m_gStates->Add( wxT("enter") );
  m_gStates->Add( wxT("occ") );
  m_gStates->Add( wxT("closed") );
  m_gStates->Add( wxT("ghost") );
  for( int i = 0; i < G_MAX; i++ ) {
    if( StrOp.len( svgsym->gState[i] ) > 0 )  {
      if( m_gStates->Index(wxString(svgsym->gState[i], wxConvUTF8)) == wxNOT_FOUND )
        m_gStates->Add( wxString(svgsym->gState[i], wxConvUTF8) );
    }
  }
  m_gState->Clear();
  m_gState->Append(*m_gStates);
  m_gState->SetStringSelection( wxString(m_gStateValue, wxConvUTF8) );

`


Reply to this email directly, view it on GitHub, or unsubscribe.

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

VZ

unread,
Jul 5, 2025, 11:17:51 AMJul 5
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25553)

Sorry, you really need to produce an SSCCE because I don't see any events from SetStringSelection() either, see #25599, and I've already spent quite enough time chasing this bug blindly.

Please either make a small standalone example showing the problem or update the unit test I've added in the linked PR to show the problem you're seeing. TIA!


Reply to this email directly, view it on GitHub, or unsubscribe.

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

github-actions[bot]

unread,
Oct 13, 2025, 4:33:31 PM (4 days ago) Oct 13
to wx-...@googlegroups.com, Subscribed

Closed #25553 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

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

github-actions[bot]

unread,
Oct 13, 2025, 4:33:31 PM (4 days ago) Oct 13
to wx-...@googlegroups.com, Subscribed
github-actions[bot] left a comment (wxWidgets/wxWidgets#25553)

This issue has been automatically closed because there has been no response to our request for more information from the original author since 100 days and we're unable to do anything about the problem without more information. Please comment on this issue if you can provide any additional data so that we could investigate it further.


Reply to this email directly, view it on GitHub, or unsubscribe.

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

Reply all
Reply to author
Forward
0 new messages