Page 1 of 1
How could I select whole series ?
Posted: Wed Oct 05, 2005 12:23 pm
by 8120345
Tutorial,Sample,Help ..I couldnt Find "ready solution"?
Is there any shortcut?
Or I have to right my select code for every diffrent type of series..
Thx..
Posted: Wed Oct 05, 2005 1:50 pm
by narcis
Hi glikoz,
Sorry but I don't understand what you exactly want to do. Could you please be more specific on that?
Thanks in advance.
Selecting Series...
Posted: Wed Oct 05, 2005 2:18 pm
by 8120345
if user left click on the series (for example Candle) ,Candle seems "selected" ..Mini circles seems on some point of series..or mini rectangle or mini diamond..
Best sample is
TeeChart for .NET Examples -->All Features -->Tools-->DrawLines-->DrawLine Tool ...
if you click line it is selected ...
Posted: Wed Oct 05, 2005 2:48 pm
by narcis
Hi glikoz,
Ok, DrawLine is a tool, not a series style. However, I'm afraid only one line can be selected at each time.
BTW: What are you exactly trying to get, we may suggest you an alternative.
Posted: Thu Oct 06, 2005 6:34 am
by 8120345
I have been making Technical Analysis Solution like MetaStock(Equis) ..
For example: user loads chart of security(stock) ..(surely with Candle series)..
And user wants to select candle series ..Clicks a point on the series (any point on the series-not important which one)
How could user recognize the candle series was selected?
As LineTool ,some points on the candle series have got square points or diamond points..
I ask that I could easily write like that ...
Series.Onclick
{
Series.Selected=true;
}
or i have to write my own selection functions for every type of series ?
THx for advice ..
Posted: Thu Oct 06, 2005 9:31 am
by Chris
Hi glikoz,
I ask that I could easily write like that ...
Series.Onclick
{
Series.Selected=true;
}
or i have to write my own selection functions for every type of series ?
I'm afraid the Selected property (or similar) does not exist meaning that you will have to write your own selections functions for each series type.
As you suggest, drawing rectangles using the Graphics3D object in the AfterDraw event would be one solution; another might be to change some of the visual properties of the series, e.g.
Code: Select all
private void candle1_Click(object sender, System.Windows.Forms.MouseEventArgs e)
{
candle1.UpCloseColor = Color.Salmon;
candle1.DownCloseColor = Color.Purple;
candle1.HighLowPen.Color = Color.Cyan;
candle1.Pointer.Pen.Color = Color.Cyan;
tChart1.Invalidate();
}