trichview.support
Re: RichViewActions: suggestion for improvement (more) |
Author |
Message |
Sergey Tkachenko |
Posted: 09/24/2003 21:48:21 > 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