ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to select a chart from the finance charts
Posted by Tunde on Jun-27-2013 21:56
Attachments:
Hi Peter,

Thanks for your responds nowadays they are very helpful.
The next thing i will like to do is to be able to select a chart from the finance chart, and
perform any or all the followings on it:
1. Change its color
2. Change its periods
3. Drag and drop another chart like the MACD on the may price chart window

I have attached a screenshot of what i have explained. A lead will help me begin the coding
and can post if i have any further question.


Thanks for your assistance

Tunde
changing chart properties at user end.docx
changing chart properties at user end.docx

235.71 Kb

  Re: How to select a chart from the finance charts
Posted by Peter Kwan on Jun-28-2013 03:19
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