| From: | Steffen Kuhn <pg(at)kuhnsteffen(dot)de> |
|---|---|
| To: | pgadmin-hackers(at)postgresql(dot)org |
| Subject: | ReadOnly ComboBoxes in dlgSelectConnection.cpp |
| Date: | 2010-08-22 09:48:09 |
| Message-ID: | 4C70F259.6090709@kuhnsteffen.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
Hi ,
if pgAdmin is startet with option 'S' and there are no QuickConnect
informations in the settings
the readonly comboboxes make no sense.
I tried following code:
if (form == NULL)
{
cbServer->SetValue(settings->Read(wxT("QuickConnect/server"),
wxEmptyString));
if (cbServer->IsEmpty())
cbServer->SetWindowStyleFlag(cbServer->GetWindowStyleFlag()
& ~wxCB_READONLY);
cbDatabase->SetValue(settings->Read(wxT("QuickConnect/database"),
wxEmptyString));
if (cbDatabase->IsEmpty())
cbDatabase->SetWindowStyleFlag(cbDatabase->GetWindowStyleFlag() &
~wxCB_READONLY);
cbUsername->SetValue(settings->Read(wxT("QuickConnect/username"),
wxEmptyString));
}
but the combobox didn't change to be editable.
So find another patch attached.
Also fixed height of username combobox.
Regards
Steffen
| Attachment | Content-Type | Size |
|---|---|---|
| work.patch | text/x-patch | 2.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marek Černocký | 2010-08-22 13:57:53 | Updated Czech translation |
| Previous Message | pgAdmin Trac | 2010-08-21 15:17:47 | Re: [pgAdmin III] #227: Add the new vacuum and analyze counters of pg_stat_all_tables on the statistics tab |