We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change node border as highlight when selected ?

Thread ID:

Created:

Updated:

Platform:

Replies:

23292 Jan 8,2005 10:52 AM UTC Jan 12,2005 05:22 PM UTC Windows Forms 1
loading
Tags: Diagram
suwit
Asked On January 8, 2005 10:52 AM UTC

How to change node border as highlight when selected ?

Administrator [Syncfusion]
Replied On January 12, 2005 05:22 PM UTC

Suwit, If you want to change selection aspects for specific symbols in response to runtime events, then you would have to use the Symbol subclassing approach demonstrated in the CustomSymbol sample. You will first create an assembly containing the class defintion for a Symbol type that implements the required behavior and then specify this class/assembly as the PlugIn class and assembly for the symbol while designing it in the SymbolDesigner. You can also refer to the DynamicSymbol sample for hints on changing symbol attributes based on user events. On the other hand if your intention is to change the way diagram draws it''s selection indicators as a whole, then you can do so by subclassing the Diagram.View component and providing suitable overrides for the View.DrawSelectOutline(System.Drawing.Graphics grfx, INode node, bool isAnchor) and View.DrawSelectionHandles(System.Drawing.Graphics grfx) methods. Referring to the base implementation in the Diagram\Src\Object Hierarchy\View.cs file should help you get started with this. Regards, Prakash

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;