Page 1 of 1

TeeChart in PowerBuilder

Posted: Thu Nov 22, 2007 10:25 am
by 9528587
Good day.

I'm using TeeChart for my graph in PowerBuilder 8 and 10.
My Graph will depend on the retrieved data.
For example:
1. If only one day will be chosen, it will display a Bar Graph and if more than a day then it will display a FastLine Graph.

My problem are:
1. I can't customize my FastLine Graph by changing its pointer style from none to diamond or any shape.
2. I can't set the point to visible in PB.

1. How will I set the point to Visible?
2. How will I change the pointer style from none to Diamond?
3. Do you have a tutorial on TeeChart using PowerBuilder Code? If yes, can you send it to me?


Posted: Thu Nov 22, 2007 10:53 am
by narcis
Hi khalipar,

First of all, please notice that I moved your message from the forum you originally posted it as it is TeeGofer forum, a product different from TeeChart. Moreover, since you are using PowerBuilder I assume you are using TeeChart Pro ActiveX since PB supports ActiveX controls and therefore I moved the thread to the TeeChart Pro ActiveX forum.

Having said that, find below the answers to your questions:

1. You can't set FastLine series pointer as this series style doesn't have Pointer to optimize it's drawing speed. If you want to use line series with pointers you should use line series.

2. In Visual Basic, you can set pointer style like this:

Code: Select all

    TChart1.Series(0).asLine.Pointer.Visible = True
    TChart1.Series(0).asLine.Pointer.Style = psDiamond
If PowerBuilder doesn't recognise TeeChart's constants you'll find their definitions at TeeChartDefines.h available at C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Examples\Visual C++ (Default English installation path). So that the code above would be:

Code: Select all

    TChart1.Series(0).asLine.Pointer.Visible = True
    TChart1.Series(0).asLine.Pointer.Style = 7
3. No, we don't have any PB example nor documentation. We don't have much experience using PowerBuilder but we know some of our clients use TeeChart Pro ActiveX with this environment. Here you can find a PB example a client posted.

Posted: Fri Nov 23, 2007 12:28 am
by 9528587
Hi NarcĂ­s,

Thank for the correction and the prompt support.
I've already resolved the problem by using the sample code you gave. :D