ReadOnly ComboBoxes in dlgSelectConnection.cpp

Поиск
Список
Период
Сортировка
От Steffen Kuhn
Тема ReadOnly ComboBoxes in dlgSelectConnection.cpp
Дата
Msg-id 4C70F259.6090709@kuhnsteffen.de
обсуждение исходный текст
Ответы Re: ReadOnly ComboBoxes in dlgSelectConnection.cpp  (Guillaume Lelarge <guillaume@lelarge.info>)
Список 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

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: "pgAdmin Trac"
Дата:
Сообщение: Re: [pgAdmin III] #227: Add the new vacuum and analyze counters of pg_stat_all_tables on the statistics tab
Следующее
От: Steffen Kuhn
Дата:
Сообщение: Fwd: dlgEditGridOptions