trichview.support
Re: RichViewActions: suggestion for improvement (more) |
Author |
Message |
Yoerdes |
Posted: 09/26/2003 21:10:18 Thanks for the tip for TrvActionInsertTable. Regarding TrvActionInsertPicture, what I want to do after selecting an image file is probably too specific to make it a standard behavior. We're doing some additional stuff depending of the image type before we allow the images to be inserted. Yoerdes Sergey Tkachenko wrote: >>It also would be nice if TrvActionInsertTable or other actions that >>open a dialog would have an event OnShowDialog or similar, where you >>still can set some situation dependent properties. > > > Do you want to modify action's properties (RowCount/ColCount)? > It is possible. > Process OnExecute of this action. > Inside OnExecute, call the following: > > <your initialization code here> > actioninserttable.OnExecute := nil; > try > actioninserttable.Execute; > finally > actioninserttable.OnExecute := actioninserttableExecute; > end; > > This technique is useful if you want to call your code before and/or after > the standart action execution. > > > >>TrvActionInsertPicture could have an event OnFileSelected, which - if >>assigned - would replace what happens with the selected file right now. > > > You can display TOpenPictureDialog even without action :) > What do you want to do instead of inserting image? May be I can add this > functionality to the action > > |
Powered by ABC Amber Outlook Express Converter