BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Looking for HTML TEdit control

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
Sam Larson
Guest





PostPosted: Fri May 18, 2007 11:32 pm    Post subject: Looking for HTML TEdit control Reply with 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
Franz-Leo Chomse
Guest





PostPosted: Sat May 19, 2007 12:33 am    Post subject: Re: Looking for HTML TEdit control Reply with quote



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





PostPosted: Sat May 19, 2007 12:57 am    Post subject: Re: Looking for HTML TEdit control Reply with quote



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





PostPosted: Sat May 19, 2007 3:24 am    Post subject: Re: Looking for HTML TEdit control Reply with quote

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





PostPosted: Sat May 19, 2007 8:13 am    Post subject: Re: Looking for HTML TEdit control Reply with quote

Ok, I got it working. :)

Sam
Back to top
Brian Moelk
Guest





PostPosted: Mon May 21, 2007 8:12 am    Post subject: Re: Looking for HTML TEdit control Reply with quote

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





PostPosted: Mon May 21, 2007 8:12 am    Post subject: Re: Looking for HTML TEdit control Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.