Solved

DBRichEdit and hottext Or URL Links

Posted on 2008-06-11
5
582 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Correct Component for Shopping Cart. 2 105
Working with hours 3 57
can't find the executable in Simulator 1 90
Angular JS Route 3 70
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

776 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