I just wanted to post a reply. Today, I got time to test the code. Everything is working fine.... very fine. I really want to say thanks for the great support!
Please apologize my delay. But sometime your board doesn't send me a notification. I just checked an the last mail was from "18.08.2011 19:31" (my timezone).
I just detected your code some minutes ago, so I couldn't check it. But I assume it will work great ;)
Thanks for the explenation!
Between the brackets could be more than one word.
It's very kind of you to write the code for me and I'm really happy about it. I also will try it myself and if it works, i'll post my code. If not, I'm waiting for your solution!
Yes, the strings are in the same font type, so I really need to parse the RTF. I thought of using regular expressions. That shouldn't be the problem. But I really don't understand your "ScanURLs" demo.
On wich events do I have to write my code for detecting or scanning my "hyperlinks".
sorry, but I didn't recognize that you've posted again. These documents are RTF files, which are stored in a database. The "[open...]"-tag are visible plain text.
So the application should scan the visible Text for the "[open..]"-tags and should do the following:
Ok Thank you very much for your explanation. I looked at the demo some time ago but now I know exactly how it works ;)
But I got a further question. I'm switching my application to TRichView. So users made links in the past that now have to be detected and replaced (cutted the "[open/xxxxx]" and ...
But I got another question which I can't answer by myself. I just want to reach, that a specific Text (not an url) is highlighted and gets an custom onClick procedure in which a new Form is being opened.
I've another question. Is it possible to draw lines at specific positions? I want to show my users visually at which position they override the page-size. It's not an official DIN-Format i need to set the position in cm (centimeter). I also don't use the ruler-component.
If you want, I can do so. But this behaviour can be reached also with your demo (Editor 2). Just add an label on the form and type this code in the OnClick-action
procedure TForm1.Label1Click(Sender: TObject); begin rve.ApplyStyleConversion(TEXT_BOLD); end;
I try to set up "smart popups" and run into a strange behaviour. I've button, that makes the selected Text bold (same code as from your demo). This button makes the selected text bold indeed.
BUT: I've a second button (that one from the smart popup). Its onClick has the following code ...