trichview.com

trichview.support




Re: Exotic bug OnDblClick & LoadRVFFromStream


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/04/2005 19:43:02


Sorry for the delay.


Yes, it's not possible to clear the document inside OnDblClick.

But you can do it by moving clearing(loading) procedure from this event,

using PostMessage.


Define some constant > WM_USER:

const WM_RELOADDOC = WM_USER+5;


In the form's declaration:

procedure WMReloadDoc(var Msg: TMessage); message WM_RELOADDOC;


Implementation:

procedure TForm3.WMReloadDoc(var Msg: TMessage);

begin

  { code for loading here }

end;


Double click:

procedure TForm3.RichViewEdit1DblClick(Sender: TObject);

begin

  PostMessage(Handle, WM_RELOADDOC, 0, 0);

end;





Powered by ABC Amber Outlook Express Converter