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?
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
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com