Skip site navigation (1) Skip section navigation (2)

ReadOnly ComboBoxes in dlgSelectConnection.cpp

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 (view raw or flat)
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: work.patch
Description: text/x-patch (2.0 KB)

Responses

pgadmin-hackers by date

Next:From: Marek ČernockýDate: 2010-08-22 13:57:53
Subject: Updated Czech translation
Previous:From: pgAdmin TracDate: 2010-08-21 15:17:47
Subject: Re: [pgAdmin III] #227: Add the new vacuum and analyze counters of pg_stat_all_tables on the statistics tab

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group