Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Ashley, If you want to change the default appearance of newly created objects, that are created by the different tools (CreateRectangle, CreateEllipse etc.), it is best to override the methods of the NDiagramElementFactory class, an instance of which is associated with each NDrawingView. All create element tools (CreateRectangle, CreateEllipse etc.) invoke these methods when they need to create a new NRectangleShape, NEllipseShape etc. so you can assing arbitrary appearance to these newly created objects.
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 3 Years Ago
Posts: 36,
Visits: 119
|
What is the best way to change the default stroke and fill attributes when a user selects a tool? For instance when they select a rectangle I want the stroke width to be 3 and the fill color to be purple. Also is there a way to change this for all tools (assuming all tools have the same attributes) so that they do not have to be indiviually coded? Thanks, Ashley
|