[wxMac] wxComboBox::GetInsertionPoint() broken?
[wxMac] wxComboBox::GetInsertionPoint() broken?
От:
Dave Page <dpage@vale-housing.co.uk>
Дата:
Hi Stefan,
I think I found a bug in wxMac that is preventing the combo box auto
complete code in pgAdmin from working. It appears that
wxComboBox::GetInsertionPoint() always returns 0 :-(.
I've proven this in 2.7.0 by appropriately modifying the controls sample
with the following function:
void MyPanel::OnComboTextChanged(wxCommandEvent& event)
{
if (m_combo)
wxLogMessage(wxT("EVT_TEXT for the combobox: \"%s\" (event) or
\"%s\" (control). Insertion point: %d"),
event.GetString().c_str(),
m_combo->GetValue().c_str(),
m_combo->GetInsertionPoint());
}
It also appears to affect 2.6.3 as we see the same bug in pgAdmin 1.4.3.
Regards, Dave.