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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Tue, 12 Feb 2008 10:46:57 +0100
  • Message-id: <47B16B11.4040402@hagander.net> <text/plain>

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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group