trichview.com

trichview.support




Re: new user


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/13/2002 21:51:24


> 1. I want to create an autodetetect url. like when i enter

www.microsoft.com

> then it would automatic create a hyberlink , but how??


There is no function for real-time autodetection of URLs.

But you can make it by a special command (for execution on toolbar button

click, or on document saving).

Example is in

Demos\Delphi\Assorted\URLs\


> 2. Can I insert object  and how?


Which kind of objects?


> 3. I have some trouble to stream data to a richedit control, Do I do

> something wrong ??

>

>     M:=TMemoryStream.Create;

>     TBlobfield(qryKnowledgeBase.FieldByName('SOLUTION')).SaveToStream(M);

>     M.Position:=0;

>     frmNoteEditor.Editor.Lines.LoadFromStream(M); //data is inserted into

> the richedit component "editor "

>     frmNoteEditor.Editor2.LoadRTFFromStream(M); //but not this one

>     frmNoteEditor.Editor2.format;

>     frmNoteEditor.ShowModal;

>     M.Free;

>


Try to add

M.Position:=0;

before calling LoadRTFFromStream. I suppose that RichEdit sets stream

position to the end of the data after loading.

PS: Result of RTF import will look much better if you'll set "Allow adding

styles dynamically" mode (right-click Editor2 in Delphi, choose "Settings"

in the context menu)





Powered by ABC Amber Outlook Express Converter