Solved

DBRichEdit and hottext Or URL Links

Posted on 2008-06-11
5
572 Views
Last Modified: 2013-11-23
Hi,

I am having issues with hottext or URLLinks. While typing or entering data in the DBRichEdit box  I could see the URLLink get active, (I have AutoUrlDetect property is true). I can save the text in database successfully. When I retrieve the data the URLLink does not appear to be active link. It is just like plane text. It gets active if I add a space at the beginning or end of the UrlLink text.

Could anybody help me to resolve the issue? Is there any thing else I am missing?

I am using Delphi 2005, Interbase/SQL Server database.

Thanks in advance.
Regards,
ktuser.


FYI: The same functionality used to work in previous version of application which was developed using Delphi 5 and DBRichEdit component.
0
Comment
Question by:ktuser
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 21766166
hmm... make sure the "PlainText" property is set to false, maybe that's it
0
 

Author Comment

by:ktuser
ID: 21794158
There is no such property.

Any other suggestion please!!
0
 

Author Comment

by:ktuser
ID: 21807080
Resolution is found.
I need to use DBRichEdit.GetRTFText  function to store the text in the database and after assigning text to DBRichEdit again I need to use it to get the format back.
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 21809361
> There is no such property.
Yes there is...
DBRichEdit1.PlainText

Controls whether the rich edit control treats the text as plain text or rich text when streaming to or from a file.

property PlainText: Boolean;

Description

To write the rich text in the control to a plain text file, set PlainText to True before streaming the text to a file. To ignore the rich text information encoded in a file, set PlainText to True before streaming the text to the control. To stream in the rich text attributes encoded in a file, or save the encoding of the rich text attributes to a file, set PlainText to False.

If the rich text attributes of a file are encoded in some format other than rich text format (RTF), it is necessary to use a converter on the text, even when PlainText is True.

Note:      Rich edit controls do not directly support streaming. Use the Lines property to stream to or from a file.
0
 

Accepted Solution

by:
ktuser earned 0 total points
ID: 21812416
Thanks a lot for your response Loki. Sorry it was my mistake!,
I forgot to mension in my previous post that yes the RichEdit components have PlainText property.

But in my case PlainText property did not resolve the issue. After assigning the text to the DBRichEdit component I need to call GetRTFText function. Without this call the component is not showing URL as active.

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now