After struggling for a while to get my head around the event sequence and finally getting my node to work how I want, I have one little niggle left, which hopefully someone can help me solve this last issue.
I have spent so many hours working on this I would be very greatful if someone could have a quick look over it.
Here is the problem,
When I add a node the node gets added as show below:
The node is made up of a GradientShape, a port on the top, goText label for the “Question Branching Test” text, another goText for the “Branching Question” (italics) and finally a goMultiTextNode for the Branch Items list (With a port on the right hand side).
As you can see the node is a little too small when its first being added, I have overriden “Compute Resize” aqnd have a min size of (200, 60).
So First problem is that when I add a newly created node it is not sizing correclty and I cannot find how to fix.
Second item: if I click the resize handles once (without moving the mouse) the node width is resized correctly However the height seems to increase for no reason (Well obviously for a reason, but I cannot find it anywhere). See below:
So, if I now resize the nodes height I can dag the height so its smaller than the node bounds, when I release the node automatically resizes to the minimum height possible (Which is what I want) however the gradient stays at the invalid resized location, How can I get the gradient to resize to where the handles are shown on the image below:
Then finally if it click the Green handle once the gradient is then resized accordingly. How can I get the gradient to resize when an invalid resize is performed, it seems the gradient just stays at the last invalid resize point until I resize again.
I resize my gradient in the LayoutChildren, its a little hard to explain, so I have attached a VS2005 sample to demo what I am doing.
I’m on my last couple of days evaluation of the GoDiagram 2.5 Beta, so any help in getting this sorted would be great.
Thanks in advance
P.S the VS project can be downloaded from: