Home Component Writing

TppRichText descendent (from RB7 to RB10)

edited August 2007 in Component Writing
Hi people,

I'm trying to adapt my custom RB components from RB7 to RB10 and I got stuck
on this one: TppRichText descendent wich overrides the method
LoadDrawRichEdit to do some macro expansion stuff.

The problem is that method is gone! What is the equivalent one in RB10 ?

My code basicaly do a search and replace all over the text.

TIA

---
Fabio Lindner
Gvdasa Software
Brazil

Comments

  • edited August 2007

    - try override the LoadRichText method

    - RB 9 introduced a new RCL architecture, here is an article with details...

    ---------------------------------------
    Article: RB 9 Architecture Changes
    ---------------------------------------

    ReportBuilder 9 includes architecture changes to more cleanly separate
    Designer code from Report code. The code related to component popup menus
    and design controls has been broken out into separate classes.

    For an example, check out RBuilder\Demos\RCL.


    The myChkBox.pas unit contains the component classes....


    TppCustomComponent

    |
    |

    TMyCustomCheckBox

    |
    |-- TmyCheckBox
    |
    |-- TmyDBCheckBox


    The myChkBoxDesign.pas unit contains popup menu and design control classes.
    These are compiled into a separate package.


    A. Popup Menu classes....

    TppComponentPopupMenu

    |
    |

    TmyCustomCheckBoxPopupMenu

    |
    |-- TmyCheckBoxPopupMenu
    |
    |-- TmyDBCheckBoxPopupMenu


    B. Design Control classes.....



    TmyCustomCheckBoxControl

    |
    |

    TmyCustomCheckBoxPopupMenu

    |
    |-- TmyCheckBoxControl
    |
    |-- TmyDBCheckBoxControl





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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2007
    Thanks, Nard. It seems to work.

    Fabio Lindner
This discussion has been closed.