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

OnGetDisplayFormats not firering?

edited August 2009 in General
Hi,

We are upgrading from RbPro 7.03 tot 11.05R3 (Delphi 2006)

But now the TppDesigner.OnGetDisplayFormat event does not get fired anymore.

Did some debugging and found that in TppComponentPopupMenu.SendDesignMessage
(unit ppPopmenus) FComponent is used. But that field is nil at
user-designtime and no message is send. Should that function use the
Component property?

As an experiment i changed the SendDesignMessage function and now
OnGetDisplayFormat is firering again but its not helping. The Sender
argument of the event should be the component on the report but is now of
type TppDesignEventHub.

So how can i get OnGetDisplayFormat working again?

Regards,

Max Paay
Quadrant Software bv.
The Netherlands.








Comments

  • edited August 2009

    Thanks for reporting this issue - it will be fixed for the next maintenance
    release. (The fix requires modifying the implementation section of a unit,
    therefore it cannot be fixed with a patch.)

    The OnGetDisplayFormats event is retained for backward compability.

    The recommended approach for customizing the DsiplayFormats is to create a
    descendant of TppDsiplayFormat and register it with RB.

    http://www.digital-metaphors.com/rbWiki/Design/Formatting/Change_the_existing_display_formats


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2009
    Thanks,



    Implemented it that way and is working OK now.


    Regards,

    Max Paay
    Quadrant Software bv.
    The Netherlands.





    __________ Information from ESET NOD32 Antivirus, version of virus signature database 4311 (20090806) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com
This discussion has been closed.