Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Tool tips in report preview

edited March 2002 in General

Ib the report preview to screen, there are no tool tips for the print and
zoom buttons on the toolbar.

How can I change this?

Regards,

Kieron

--
Kieron G Smith
Work: work@kieronsmith.co.uk
And Play: play@kieronsmith.co.uk

Comments

  • edited March 2002
    Looks like the button's ShowHint property is always false in the preview
    class. This has been fixed for the next maintenance release. In the
    meantime, you can create and register your own descendent of
    TppCustomPreview, just like our TppPreview class in ppPreview.pas. The
    TppPreview class knows about the buttons, so internal to this class you'll
    need to set the ShowHint property to True.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited March 2002
    It's actually there is an easier way to get it to work. Just create a
    TppPreview descendent and override the BeforePreview and set
    ToolBar.ShowHint to true.

    type

    TppMyPreview = class(TppPreview)
    public
    procedure BeforePreview; override;

    end;

    implementation


    procedure TppMyPreview.BeforePreview;
    begin

    inherited BeforePreview;

    Toolbar.ShowHint := True;

    end;


    initialization
    TppPreviewPlugIn.Register(TppMyPreview);

    finalization
    TppPreviewPlugIn.UnRegister(TppMyPreview);


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited March 2002
    Use 1stClass StatusBar. Displays the hints even if ShowHint is false!

  • edited March 2002
    Is there a way to modify a preview button property using this technique?

    The only way I've been able to do it is to make the changed to a saved copy
    of ppPreview.pas.

    Mitch Mullins
  • edited March 2002
    Yes, there is. This demo shows how to change the visibility of the print
    button.

    http://www.digital-metaphors.com/tips/PreviewPlugin.zip


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.