Re: Formatted text confuses table grid under windows

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Erwin Brandstetter <brandstetter(at)falter(dot)at>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Formatted text confuses table grid under windows
Date: 2008-02-12 09:46:57
Message-ID: 47B16B11.4040402@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Dave Page wrote:
> Hi Erwin,
>> To see my point you might want to just reproduce the bug. Create an email
>> hyperlink in an OOo document. (Insert -> Hyperlink ..) Then copy/paste the
>> email-address to a text field in the table grid.
>>
>> As long as you are in edit mode, the field displays (in blue, so obviously
>> something is different):
>> test(at)foo(dot)org
>>
>> As soon as you leave the field, to another column or row, saving the data or
>> not, the display changes to:
>> HYPERLINK "mailto:test(at)foo(dot)org" test(at)foo(dot)org
>>
>
> Unfortunately I cannot find any way around this. If we stop using the
> rich text control, we limit the amount of data we can handle as the
> non-rich text variant will simply truncate oversized data on win32.
> There is no way in wxWidgets to remove the URL formatting that I can
> find, nor is there any way offered by the rich text controls own API
> :-(. It is somewhat odd that we can get the text with the other
> formatting (font etc) though - perhaps an overisght on Microsoft's
> behalf?

AFAIK, none of that auto-formatting is a part of what Windows richtext
control does, I think it's all in wx. Not that it helps you, though :-(
Unless you want to add code to wx to do it...

//Magnus

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2008-02-12 09:55:29 Re: Formatted text confuses table grid under windows
Previous Message svn 2008-02-11 21:17:36 SVN Commit by dpage: r7073 - trunk/pgadmin3