trichview.support
RichView Actions on MDI-child |
Author |
Message |
RichView Tester |
Posted: 02/05/2003 14:43:36 Hello, I have an MDI app where I have placed the RichView Actions on a MDI-child form. To do this I have modified the RichView Actions demo (added som controls). The program is working perfectly the first time I create the MDI-child. But then if I close it and opens a new MDI-child the program crash, the line that seems to be the problem is when it's assigning the notifyevents to some functions, in FormCreate(). Do I have to unassign the notifyevents OnDestroy() or can this code only be done one time? procedure TForm3.FormCreate(Sender: TObject); begin // Code for making color-picking buttons stay pressed while a // color-picker window is visible. rvActionsResource.rvActionColor1.OnShowColorPicker := ColorPickerShow; // <- Error second time. rvActionsResource.rvActionColor1.OnHideColorPicker := ColorPickerHide; ... end; Has anyone succeded using the RichView Actions on an MDI-child? I'm using: Delphi 7 Ent., RichView 1.7.4 with RichView Actions 1.22 Thanks for your help, Mike |
Powered by ABC Amber Outlook Express Converter