| View previous topic :: View next topic |
| Author |
Message |
Sam Larson Guest
|
Posted: Fri May 18, 2007 11:32 pm Post subject: Looking for HTML TEdit control |
|
|
I want to colorize search words in rows found in a table, and pBear's
THTMLViewer works fine for that. I have a THTMLViewer at the bottom of
the window that is linked to a memo in the table. But I also want to
allow the user to edit the memo contents and it looks like THTMLViewer
is readonly. :(
The only way around this I guess is when the user clicks on the
THTMLViewer, hide it and display a Tmemo field that would allow the user
to edit the text. Then when he leaves the Tmemo field, hide it and
unhide the HtmlViewer to display the new text.
Is this the best way to do it? Or is there a better HTML edit component
out there (that doesn't depend on IE)?
TIA
Sam |
|
| Back to top |
|
 |
Franz-Leo Chomse Guest
|
Posted: Sat May 19, 2007 12:33 am Post subject: Re: Looking for HTML TEdit control |
|
|
On Fri, 18 May 2007 12:32:13 -0600, Sam Larson <sam212 (AT) yahoo (DOT) com>
wrote:
| Quote: | I want to colorize search words in rows found in a table, and pBear's
THTMLViewer works fine for that. I have a THTMLViewer at the bottom of
the window that is linked to a memo in the table. But I also want to
allow the user to edit the memo contents and it looks like THTMLViewer
is readonly. :(
|
tmssoftware has some controls which react on a small subset of HTML
tags.
If you need the full blown tag set, you should use a multi line edit
control with syntax highlighting like synedit.
Regards from Germany
Franz-Leo |
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Sat May 19, 2007 12:57 am Post subject: Re: Looking for HTML TEdit control |
|
|
I suggest to edit the words in TRichEdit and convert to html for your
current needs
--
With best regards, Mike Shkolnik
Scalabium Software
http://www.scalabium.com
mshkolnik (AT) scalabium (DOT) com
"Sam Larson" <sam212 (AT) yahoo (DOT) com> wrote in message
news:464df111$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I want to colorize search words in rows found in a table, and pBear's
THTMLViewer works fine for that. I have a THTMLViewer at the bottom of
the window that is linked to a memo in the table. But I also want to
allow the user to edit the memo contents and it looks like THTMLViewer
is readonly. :(
The only way around this I guess is when the user clicks on the
THTMLViewer, hide it and display a Tmemo field that would allow the user
to edit the text. Then when he leaves the Tmemo field, hide it and
unhide the HtmlViewer to display the new text.
Is this the best way to do it? Or is there a better HTML edit component
out there (that doesn't depend on IE)?
TIA
Sam |
|
|
| Back to top |
|
 |
Sam Larson Guest
|
Posted: Sat May 19, 2007 3:24 am Post subject: Re: Looking for HTML TEdit control |
|
|
Mike Shkolnik wrote:
| Quote: | I suggest to edit the words in TRichEdit and convert to html for your
current needs
|
Mike,
Yes, I think RichEdit is the way to go. My only question is, since
the TRichEdit control is not attached to the dataset, how do I force the
dataset to save the changes if the richedit control is modified? The
TRichEdit is positioned below the grid, and if the user changes text in
the RichEdit control without modifying the grid row, I'm going to have
to somehow tell the dataset to save the richedit text to the current
record before it moves to another record. I can of course detect when
the RichEdit is modified, but the Dataset.Modified property is read
only. Is there a way to force the dataset to save the record when moving
to a new record? I could I suppose set the dataset to edit mode (if its
not already in dsEdit/dsInsert) and update a field value to itself, but
is there a better way?
TIA
Sam |
|
| Back to top |
|
 |
Sam Larson Guest
|
Posted: Sat May 19, 2007 8:13 am Post subject: Re: Looking for HTML TEdit control |
|
|
Ok, I got it working. :)
Sam |
|
| Back to top |
|
 |
Brian Moelk Guest
|
Posted: Mon May 21, 2007 8:12 am Post subject: Re: Looking for HTML TEdit control |
|
|
Sam Larson wrote:
| Quote: | Is this the best way to do it? Or is there a better HTML edit component
out there (that doesn't depend on IE)?
|
The one that doesn't depend on IE is: purposesoft.com
--
Brian Moelk
Brain Endeavor LLC
bmoelk (AT) NObrainSPAMendeavorFOR (DOT) MEcom |
|
| Back to top |
|
 |
Sam Larson Guest
|
Posted: Mon May 21, 2007 8:12 am Post subject: Re: Looking for HTML TEdit control |
|
|
Brian Moelk wrote:
| Quote: | Sam Larson wrote:
Is this the best way to do it? Or is there a better HTML edit component
out there (that doesn't depend on IE)?
The one that doesn't depend on IE is: purposesoft.com
|
Brian,
It looks quite powerful. Thanks.
Sam |
|
| Back to top |
|
 |
|