User (Legacy) Posted October 14, 2005 Report Share Posted October 14, 2005 Hi everyone. I usually use the chart1.Panes[0].Bounds.Left to find the starting point of the graph. However, is the BorderObject is set to SoftwareFX.ChartFX.DefaultBorder then the chart1.Panes[0].Bounds.Left does not take the border into account. Is there a way to know the size of the border or to have the exact position of the chart area? Thanks & Regards Cristian Mori Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 14, 2005 Author Report Share Posted October 14, 2005 I was wrong. I cannot get the exact position also with the other border style. Now the question is : how do I get the exact position of a pane relative to the left edge of the control? Thanks Cristian Mori ////// "Cristian Mori" <cristian.moriREMOVE_THIS@techint.it> wrote in message news:FHfsk4L0FHA.3776@webserver3.softwarefx.com... > Hi everyone. > I usually use the chart1.Panes[0].Bounds.Left to find the starting point > of the graph. > However, is the BorderObject is set to SoftwareFX.ChartFX.DefaultBorder > then the chart1.Panes[0].Bounds.Left does not take the border into > account. Is there a way to know the size of the border or to have the > exact position of the chart area? > > Thanks & Regards > Cristian Mori > Link to comment Share on other sites More sharing options...
Software FX Posted October 15, 2005 Report Share Posted October 15, 2005 This position is relative to the drawing area which does NOT include the border or other elements (for example a Legend Box or Tool Bar). Any positioning of objects is relative to this area as well. What are you using this position for ? If you want to have it relative to the chart control, then it must be converted using Control.PointToScreen and Control.PointToClient. -- Francisco Padron www.chartfx.com "Cristian Mori" <cristian.moriREMOVE_THIS@techint.it> wrote in message news:Wlxq%23JM0FHA.1764@webserver3.softwarefx.com... >I was wrong. I cannot get the exact position also with the other border >style. > > Now the question is : how do I get the exact position of a pane relative > to the left edge of the control? > > Thanks > Cristian Mori > > ////// > "Cristian Mori" <cristian.moriREMOVE_THIS@techint.it> wrote in message > news:FHfsk4L0FHA.3776@webserver3.softwarefx.com... >> Hi everyone. >> I usually use the chart1.Panes[0].Bounds.Left to find the starting point >> of the graph. >> However, is the BorderObject is set to SoftwareFX.ChartFX.DefaultBorder >> then the chart1.Panes[0].Bounds.Left does not take the border into >> account. Is there a way to know the size of the border or to have the >> exact position of the chart area? >> >> Thanks & Regards >> Cristian Mori >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.