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

Adding new button to the designer in the design tab

edited June 2003 in End User
How can I add new button and it's handler in some bar in the design tab of
the end-user designer?
I need a button that would put some code into RAP event hadler of the
selected object(s).
How can I do it?

Thanks,
MB

Comments

  • edited June 2003
    You'll have to use the OnSelectionChanged event of the designer to get at
    the current selection. Then you will have to create a toolbar and toolbar
    button. To do this, call

    TppDesignerWindow(ppDesigner1.Form).ToolbarManager.NewToolbar(aToolbarName);

    This will return a TppToolbar. Then you can add a button to this object.

    Search ppIDE, ppDsgner, ppTB97X and ppToolWn units for more info as these
    are undocumented internal classes.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.