trichview.support
Re: Exotic bug OnDblClick & LoadRVFFromStream |
Author |
Message |
Andrew Kipcharsky |
Posted: 07/09/2005 1:04:38 Thanks a lot it's working :))) "Sergey Tkachenko" <svt@trichview.com> wrote: >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