J
JDR2000
I am writing a program which creates a graph. Basically, it is a
Panel, and every x,y point on the graph is a Label, which the user can
click on. My problem is this:
If the user selects several points by clicking on some labels, I want
to be able to draw a curve through these points. I would think that
the painting of the lines should be done in the Panel. Thus, the
rendering should be as follows:
1. The background of the Panel.
2. All of the Labels which create the Graph, which are contained in
the Panel.
3. In the OnPaint method of Panel, draw a line through the selected
points (Labels).
This means that the curve (3) would be rendered after the Labels are
rendered. Is this possible?
Any help would be greatly appreciated.
Jon R.
Panel, and every x,y point on the graph is a Label, which the user can
click on. My problem is this:
If the user selects several points by clicking on some labels, I want
to be able to draw a curve through these points. I would think that
the painting of the lines should be done in the Panel. Thus, the
rendering should be as follows:
1. The background of the Panel.
2. All of the Labels which create the Graph, which are contained in
the Panel.
3. In the OnPaint method of Panel, draw a line through the selected
points (Labels).
This means that the curve (3) would be rendered after the Labels are
rendered. Is this possible?
Any help would be greatly appreciated.
Jon R.