Subject Re: [IBO] RichText
Author Helen Borrie
At 12:22 PM 01-10-01 +0100, you wrote:
>I'm actually working on a new project, which makes a change.
>This one involves RichText memo's.
>I have them working nicely now, and can paste from the
>existing word document, but I really need to tidy up the
>'user interface'.

have you tried ShellExecute to open Word or Wordpad right inside your app?
procedure TMyForm.acOpenWordProcessorExecute(Sender: TObject);

if ShellExecute(Application.Handle, 'open', PChar('Winword.exe'), nil, PChar(MyFilePath), SW_SHOWNORMAL) < 32 then


>Does anybody have any input on two areas please.
>1/ I could do with a pop-up in the TIB_RichText which allows
>me to toggle the bold and italic attributes. I've got it on
>a button at present but has anybody been playing here.

It's been a little while - but TCustomRichEdit (the ancestor) has the read/write property SelAttributes which returns info about selected text.

>2/ Any suggestions for a pop-up editor giving acces to all
>the font and colour stuff. I'd like to use this on double
>click so that most of the stuff is just highlighting but the
>customer has full edit if they need to break the rules they
>have defined!

Take a look at the RichEdit demo in the Delphi ..\Demos directory - if you don't have it, let me know, it's just a smallish project.

>I know I can build my own, I am just trying to save time
>re-inventing the wheel.

It might be worth scanning Torry's - there was quite a number of editor components there when I was looking a while back.


All for Open and Open for All
InterBase Developer Initiative ยท