[wxMac] wxComboBox::GetInsertionPoint() broken?

From: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
To: PgAdmin Hackers <pgadmin-hackers(at)postgresql(dot)org>, <csomor(at)advancedconcepts(dot)ch>
Subject: [wxMac] wxComboBox::GetInsertionPoint() broken?
Date: 2006-10-18 21:44:14
Message-ID: C15C5EBE.16F80%dpage@vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

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.

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2006-10-20 16:09:58 SVN Commit by dpage: r5506 - trunk/pgadmin3/src/schema
Previous Message svn 2006-10-17 13:52:33 SVN Commit by dpage: r5505 - trunk/pgadmin3/src/frm