Subject | Re: [IBO] RichText |
---|---|
Author | Helen Borrie |
Post date | 2001-10-01T12:04:55Z |
At 12:22 PM 01-10-01 +0100, you wrote:
procedure TMyForm.acOpenWordProcessorExecute(Sender: TObject);
begin
if ShellExecute(Application.Handle, 'open', PChar('Winword.exe'), nil, PChar(MyFilePath), SW_SHOWNORMAL) < 32 then
end;
cheers,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>I'm actually working on a new project, which makes a change.have you tried ShellExecute to open Word or Wordpad right inside your app?
>
>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'.
procedure TMyForm.acOpenWordProcessorExecute(Sender: TObject);
begin
if ShellExecute(Application.Handle, 'open', PChar('Winword.exe'), nil, PChar(MyFilePath), SW_SHOWNORMAL) < 32 then
end;
>Does anybody have any input on two areas please.It's been a little while - but TCustomRichEdit (the ancestor) has the read/write property SelAttributes which returns info about selected text.
>
>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.
>2/ Any suggestions for a pop-up editor giving acces to allTake 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.
>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!
>I know I can build my own, I am just trying to save timeIt might be worth scanning Torry's - there was quite a number of editor components there when I was looking a while back.
>re-inventing the wheel.
cheers,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________