TextSearchSettings & Custom Previewer
(D6.02, IBO 4.2, RB 7.01)
I need help with TextSearchSettings and a custom previewer.
I have created a TppCustomPreview that I register like:
initialization
ppRegisterForm(TppCustomPreviewer, TFrmPreview);
I would like to include the new TextSearchSettings with some of our reports.
I've placed a new button on the custom previewer and I've tried
ppViewer1.DisplayAutoSearchDialog; To display the TextSearch box.
Any suggestions???
p.s. I've looked at the new preview plugin. I would prefer to use the
preview that I'm using now as it is built specific for out application.
Thanks
Paul Klomp
I need help with TextSearchSettings and a custom previewer.
I have created a TppCustomPreview that I register like:
initialization
ppRegisterForm(TppCustomPreviewer, TFrmPreview);
I would like to include the new TextSearchSettings with some of our reports.
I've placed a new button on the custom previewer and I've tried
ppViewer1.DisplayAutoSearchDialog; To display the TextSearch box.
Any suggestions???
p.s. I've looked at the new preview plugin. I would prefer to use the
preview that I'm using now as it is built specific for out application.
Thanks
Paul Klomp
This discussion has been closed.
Comments
The search preview plugin is created in the ancestor TppCustomPreview.
Perform a 'find in file' in RBuilder\Source\ppPreview.pas in the TppPreview
class for 'SearchPreview.' It is only used in three places, since most of
the code which uses the search preview plugin is in the ancestor,
TppCustomPreview. All you should have to do is override the
ToolButtonClickEvent, BeforePreview, and ConfigureTextSearchToolbar methods
in your descedent plugin class to make the calls that the TppPreview class
does in those events. Then it should work.
If you want more control over where the text search panel is configured,
here is a tip that includes 4 projects. They show how to show the search
preview as a StayOnTop dialog, make the search controls appear on the top
toolbar of the preview, replace the highlight draw command, and also how to
register a new search algorithm class.
http://www.digital-metaphors.com/tips/SearchTips.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com