Re: Edit grid sizing

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Edit grid sizing
Date: 2005-10-17 10:56:52
Message-ID: 43538374.6090303@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Dave Page wrote:

>
>
>
>
>>-----Original Message-----
>>From: Andreas Pflug [mailto:pgadmin(at)pse-consulting(dot)de]
>>Sent: 14 October 2005 21:35
>>To: Dave Page
>>Cc: pgadmin-hackers(at)postgresql(dot)org
>>Subject: Re: Edit grid sizing
>>
>>Dave Page wrote:
>>
>>
>>>Hi Andreas,
>>>
>>>Any suggestions on the best fix for the grid editor sizing
>>>
>>>
>>on Mac (see
>>
>>
>>>the attach screenshot). I'm wary of hacking it about myself
>>>
>>>
>>as I know
>>
>>
>>>you spent some time getting it right on other platforms.
>>>
>>>
>>Ouch...
>>
>>It still isn't satisfactory under all conditions.
>>AFAIR this is ctlSQLGrid::ResizeEditor stuff, I can see some magic
>>numbers there... I'd suspect that wxWidgets returns some metrics
>>incorrectly.
>>
>>I'd propose to log the calculation on *ix/win32 and OSX to see the
>>differences.
>>
>>
>
>Actually on further investigation, the size does look right, it's just
>that the top of the actual text is at height/2. I'm also finding that
>when I edit the text, I can't actually see the changes I make (even if I
>force the box to a larger size so I can see all the text) - the original
>text just stays uneditted. It does accept the changes and correctly
>update the data though. Didn't we have something like this happen back
>in the early days?
>
>
Not AFAIR, only sizing problems. Maybe we can fold some
wxGridCellAutoWrapStringEditor knowledge back into sqlGridTextEditor later.

Regards,
Andreas

>Regards, Dave
>
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2005-10-17 12:17:12 SVN Commit by dpage: r4553 - trunk/pgadmin3
Previous Message svn 2005-10-17 10:27:50 SVN Commit by dpage: r4552 - trunk/pgadmin3/src/frm