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.
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.
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.
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.
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.
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.