Re: [pgadmin-hackers] Formatted text confuses table grid under windows

2008-02-12 Thread Dave Page
On Feb 12, 2008 9:46 AM, Magnus Hagander <[EMAIL PROTECTED]> wrote:

> 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...

No, the HYPERLINK text does come from the control itself. wxWidget's
GetValue() code just uses the EM_GETTEXTRANGE message across the
entire text range to retrieve the value from what I can see.


-- 
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
The Oracle-compatible database company

---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate


Re: [pgadmin-hackers] Formatted text confuses table grid under windows

2008-02-12 Thread Magnus Hagander

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):
[EMAIL PROTECTED]

As soon as you leave the field, to another column or row, saving the data or
not, the display changes to:
HYPERLINK "mailto:[EMAIL PROTECTED]" [EMAIL PROTECTED]



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

---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster


Re: [pgadmin-hackers] Formatted text confuses table grid under windows

2008-02-12 Thread Magnus Hagander

Dave Page wrote:

On Feb 12, 2008 9:46 AM, Magnus Hagander <[EMAIL PROTECTED]> wrote:


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...


No, the HYPERLINK text does come from the control itself. wxWidget's
GetValue() code just uses the EM_GETTEXTRANGE message across the
entire text range to retrieve the value from what I can see.


Hmm. Ok. Then ignore what I said :-) In that case, no clue.

//Magnus

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings