Subject | Re: Fw: [IBO] TIB_RichEdit feature |
---|---|
Author | freeadmin |
Post date | 2004-01-14T21:59:12Z |
Helen,
Part of Helen's answer:
I use BLOB SUB_TYPE 1 column for containing HTML stream.
The OnSetText/OnGetText methods are available only in the TIB_Column.
For example:
IBA_Column.IMP file:
function TIB_ColumnInteger.GetAsString: string;
begin
...
if Assigned( FOnGetText ) then
FOnGetText( Self, Result );
end;
Unfortunately, this OnSetText/OnGetText methods are not called in the
TIB_ColumnBlob.
IBA_ColumnBlob.IMP file:
function TIB_ColumnBlob.GetAsString: string;
begin
...
// The call of OnGetText is missing.
end;
What is the reason? What kind of solution can you recommend to
solve the above mentioned problem?
Regards,
FreeAdmin
Part of Helen's answer:
> If you have written a function that can convert a richtext stream to html,Firstly, thanks for your quick answer. In my opinion you aren't right.
> 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.
I use BLOB SUB_TYPE 1 column for containing HTML stream.
The OnSetText/OnGetText methods are available only in the TIB_Column.
For example:
IBA_Column.IMP file:
function TIB_ColumnInteger.GetAsString: string;
begin
...
if Assigned( FOnGetText ) then
FOnGetText( Self, Result );
end;
Unfortunately, this OnSetText/OnGetText methods are not called in the
TIB_ColumnBlob.
IBA_ColumnBlob.IMP file:
function TIB_ColumnBlob.GetAsString: string;
begin
...
// The call of OnGetText is missing.
end;
What is the reason? What kind of solution can you recommend to
solve the above mentioned problem?
Regards,
FreeAdmin