TeeChart in PowerBuilder

TeeChart for ActiveX, COM and ASP
Post Reply
khalipar
Newbie
Newbie
Posts: 2
Joined: Wed Sep 28, 2005 4:00 am
Location: Philippines
Contact:

TeeChart in PowerBuilder

Post by khalipar » Thu Nov 22, 2007 10:25 am

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.

Questions:
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?

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 22, 2007 10:53 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

khalipar
Newbie
Newbie
Posts: 2
Joined: Wed Sep 28, 2005 4:00 am
Location: Philippines
Contact:

Post by khalipar » Fri Nov 23, 2007 12:28 am

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

Post Reply