Home Component Writing

PaintDesignControl Procedure

edited August 2007 in Component Writing
Hello,

I've writen some RB-components with RB 6.02. Now we bought RB 10.05 and I
miss the PaintDesignControl-nethod, which was used in 6.02 to draw the
component in the designer-window.

My components are drawn on the printer and on the screen device, but not in
the designer. I've tried to overwrite the invalidate-method, but I have no
canvas to draw.

What can I do?



Thank you for answer

Christine Jeschke

Comments

  • edited August 2007
    Hi Christine,

    - 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


    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.