Hi,
I am adding a box primitive in my chart based on the mouse events. I wanted to know, How can I resize the bounds of my primitive when the window state of the form changes from Normal to Maximized and vice-versa.
Thanks and Regards,
Uday
If you are adding the primitives in the FillSceneGraph event, probably you need to use something like:
prim.Width = chartWidth / 5.0;
Could you send us your code that you are adding the primitives?
Thanks for the mail. Can you send me a sample code as to how can I recalculate the bounds of the rectangle based on the window position.
In this case you need to recalculate the bounds of your primitive and to redraw it. UltraChart is doing this automatically for its primitives, but for the primitives that are added from the user we can't know whether we need to resize them.