Hi Tunde,
You are free to design any user interface you like.
For example, if you want to pop up a menu when the user right click on the chart, you can handle the right click mouse event, and pop up a menu. In the menu, there can be items that allow the user to select a color or the periods of any other parameters.
In the sample code, you can add the MACD chart by selecting the indicator from the indicator drop down list box on the left. Basically, when the indicator drop down list box is changed, the drop down list box event handler will redraw the chart with the add indicator. You can freely use drag and drop. For example, you can put many icons on your user interface, each representing a different indicator. When the user drags the icon and drop it to the chart, in the mouse event handler, you can add the redraw the chart with the indicator.
In your docx, you mentioned drawing a line causes the chart to go blank. But you have already draw a line on the chart (eg. the blue line), and the chart has not gone blank. So it depends on how you draw the line on the chart. If you are using ChartDirector API to draw the line, but the chart becomes blank, you may inform me of the exact method and code you are using so I may diagnose the problem.
Regards
Peter Kwan |