Search
-
When I disable the DrawBorder property in a port, it still renders the border. I'm sure that it is the border that is rendered because if I change the BorderWidth or BorderColor, I can see the change, so I think the property is being ignored. If I assign a CustomPen with a transparent SolidBrush, I sometimes get the desired behaviour but ...
-
I found the problem. I forgot to override the Clone() method so the drawing was done on Connector objects instead of my class.
-
I thought so too, but the method is never called.
-
I have inherited from Connector and am doing some custom rendering on it. However, the Render method does not seem to be called when you are busy drawing the connector on the model (unless it isn't virtual?). Where is this drawing done?
-
I solved it like this:
protected override void OnMouseDown(System.Windows.Forms.MouseEventArgs e)
{
if (Runtime.InteractiveMode != InteractiveMode.AddConnector || ...
-
But this does not stop you from drawing undocked lines on the model, which is what I want to avoid.
-
I solved it by setting alignment to Outset, I missed that property when looking for a solution.
-
Is this possible? I would like something like click on port, drag to other port, finished! So clicking + dragging anywhere else is not possible.
-
Hi,
I am doing some custom rendering in a class inherited from Port. I can't figure out however how I can shift the area of the port a bit so that the center is not on the border of the shape. I fiddled with Offset and InternalRectangle already but that doesn't give the wanted results. Any tips?
thx,
Mathy
-
At the moment I would like to put a combo-box on a shape. I already tried with letting the combo-box render in the diagram bitmap when it is redrawn, but this doesn't run very smoothly. Besides that there is quite some code needed to handle mouse-events etc properly. If it was something simple like a toggle-button it would be fairly easy to ...
|
|
|