trichview.support
Re: page setup and actions |
Author |
Message |
Michael Philbrick |
Posted: 12/03/2004 20:54:53 Sergey, Regarding the TRVAControlPanel, I can see that one central control would be nice, but not only do I need to connect the RVPrint control, I also have deal with the events that involve the ruler. For example, procedure TfmMacroEditor.RVAControlPanel1MarginsChanged(Sender: TrvAction; Edit: TCustomRichViewEdit); begin RVRuler1.UpdateRulerMargins; end; There is no property in TRichViewEdit or TRVAControlPanel that sets the ruler -- instead, there is a RichViewEdit property in RVRuler. Therefore, within the above event, if it is centralized, I have no way of knowing *which* RVRuler I am updating unless I create a global variable. It seems complex to maintain, and if there are not any negative effects, it seems easier to have several copies of TRVAControlPanel. What do you think? |
Powered by ABC Amber Outlook Express Converter