trichview.support
Re: RichView Actions on MDI-child |
Author |
Message |
Sergey Tkachenko |
Posted: 02/05/2003 21:35:25 1) Do not include rvActionResource datamodule (dmActions.pas) directly in your project. Create its copy and add it in your project instead 2) Make sure that this datamodule is created BEFORE any form that uses it. I guess that rvActionsResource is not created yet when your code is executed. Choose menu Project | Options, tab Forms. Make sure that this datamodule is in the list of Auto-created forms, and that it is higher in this list than any form that uses it. > 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