Re: [pgAdmin III] #247: Defined Custom Colors not retained

From: "pgAdmin Trac" <trac(at)code(dot)pgadmin(dot)org>
To:
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: [pgAdmin III] #247: Defined Custom Colors not retained
Date: 2010-10-01 21:05:29
Message-ID: 066.a1084a53887a6656163538bc3ce147e3@code.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

#247: Defined Custom Colors not retained
------------------------------+---------------------------------------------
Reporter: Melvin Davidson | Owner: dpage
Type: feature | Status: new
Priority: minor | Milestone:
Component: pgadmin | Version: 1.12
Keywords: ctlColourPicker | Platform: all
------------------------------+---------------------------------------------

Old description:

> Using PgAdmin III v 1.12.0 (Win32)
>
> When defining a Custom Color for a server connection, the definirtion
> is not retained.
>
> Steps to reproduce.
>
> 1. Right click on a connection, Properties...
> 2. Click on Colour
> 3. Click Define Custom Colors >> <--Also note inconsistency between
> Colours and Color
> 4. Set Red=255
> Green=170
> Blue=85
> 5. Click on "Add To Custom Colors" button
> 6. Click OK
> 7. Click OK
> 8. Click OK to messages about server settings
> 9. Close & then re-open PgAdmin
> 10, Repeat steps 1, 2 & 3.
> 11. Note the previous defined custom color has not been saved.

New description:

Using PgAdmin III v 1.12.0 (Win32)

When defining a Custom Color for a server connection, the definirtion
is not retained.

Steps to reproduce.

1. Right click on a connection, Properties...
2. Click on Colour
3. Click Define Custom Colors >> <--Also note inconsistency between
Colours and Color
4. Set Red=255
Green=170
Blue=85
5. Click on "Add To Custom Colors" button
6. Click OK
7. Click OK
8. Click OK to messages about server settings
9. Close & then re-open PgAdmin
10, Repeat steps 1, 2 & 3.
11. Note the previous defined custom color has not been saved.

--

Comment(by gleu):

See the documentation on wxColourData (and more precisely
GetCustomColour() and SetCustomColour() methods).

--
Ticket URL: <http://code.pgadmin.org/trac/ticket/247#comment:1>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message pgAdmin Trac 2010-10-01 21:08:45 [pgAdmin III] #248: The editgrid doesn't save the columns custom width
Previous Message pgAdmin Trac 2010-10-01 20:59:43 [pgAdmin III] #247: Defined Custom Colors not retained