Subject | Re: Fw: [IBO] TIB_RichEdit feature |
---|---|
Author | Helen Borrie |
Post date | 2004-01-13T22:05:35Z |
At 10:30 PM 13/01/2004 +0100, you wrote:
it. You need to operate on the underlying column object.
It seems you have some expectation that a richedit component is capable of
performing conversions....that's not the case. It is a container that
displays the stream given to it. If the stream is formatted as richtext,
the control by default will display it formatted. A richtext container
doesn't know how to format an html stream.
If you have written a function that can convert a richtext stream to html,
then you can call it in the OnSetText of the column. I don't know why you
think these methods are not available. Perhaps you have not hooked the
control to the column object? Consult the help for tib_column,
tib_columnblob and tib_columnmemo.
Helen
>Hi,Trying to do this conversion via the control isn't the right way to do
>
>Is there anyone who can help me?
>This would be very urgent.
>
>Regards,
> FreeAdmin
>
> > Hi,
> >
> > I would like to ask you wheter if you can help me
> > in the following problem:
> >
> > I would like to write HTML-type stream into BLOB column,
> > using TIB_RichEdit control, because I want to use formatted text.
> > I have already written the converting routines
> > from RichText stream to HTML stream and back. Unfortunately, neither
> > the TIB_RichEdit nor the BLOB column does not have OnGetText and
> > OnSetText events.
> >
> > What kind of solution can you recommend me?
> > (I have inherited a new class from TIB_RichEdit and I tried to override
> > the SysDataChange and the SysUpdateData, but maybe ther is a better
> > solution...)
> >
> > Please, write me your idea.
it. You need to operate on the underlying column object.
It seems you have some expectation that a richedit component is capable of
performing conversions....that's not the case. It is a container that
displays the stream given to it. If the stream is formatted as richtext,
the control by default will display it formatted. A richtext container
doesn't know how to format an html stream.
If you have written a function that can convert a richtext stream to html,
then you can call it in the OnSetText of the column. I don't know why you
think these methods are not available. Perhaps you have not hooked the
control to the column object? Consult the help for tib_column,
tib_columnblob and tib_columnmemo.
Helen