Drop-down chart settings

Discussion forum for PivotCube VCL users. Common questions. Bug and problem reports

Moderator: Alex Zencovich

Drop-down chart settings

Postby c_pradelli » Tue Jul 24, 2007 8:32 pm

Could be added an event "OnShowDropDownChart" where you can set visibility of Legend and Marks, the with and height of the form and wich kind of chart to display?

Some customers are asking to me to let them set that preferences as default.

Regards
Christian
c_pradelli
User
 
Posts: 19
Joined: Fri Sep 15, 2006 4:32 pm

Postby AlexZencovich » Wed Jul 25, 2007 6:36 am

There is TPivotGrid.OmDropDownChart event (with different parameters)

Just override virtual TPivotGrid.CreateDropDownChart procedure. You will get better functionality than you may get with event
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby c_pradelli » Wed Jul 25, 2007 1:14 pm

Ok, I just did that. But I can't select the kind of chart I want to see by default, I can't set "FSerieCB.ItemIndex" because its private.
Shouldn't this be a parameter of "TPVChartDDForm.Initialize"?

Regards
Christian
c_pradelli
User
 
Posts: 19
Joined: Fri Sep 15, 2006 4:32 pm

Postby AlexZencovich » Wed Jul 25, 2007 1:45 pm

Hmm, not sure. The problem - incorrect index may produce AV.
Due to bug(? - not sure) in TeeChart, if you set serie type like FastLine, Line etc an you have only one point, you get AV with big crash. I understand, the line could not have 1 point. But you cannot be sure until form not displayed and all data filled (zero values are ignored - there also one of problems with output - should zero values be shown or not)

Anyway you may hook combo via Controls[] property - just walk over all controls, find TComboBox with style csOwnerDrawFixed - there will required combo.
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby c_pradelli » Wed Jul 25, 2007 2:24 pm

>Hmm, not sure. The problem - incorrect index may produce AV.
>Due to bug(? - not sure) in TeeChart, if you set serie type like FastLine, >Line etc an you have only one point, you get AV with big crash.
This is not a problem, because if I set a wrong index you are changing it to "1" in TPVChartDDForm.FillChart.

By the way, it's a bug in that function, because you are changing to 1 if only one item in CellsTV is selected, but if root node is selected it means than all items are selected, but you also force it to 1
c_pradelli
User
 
Posts: 19
Joined: Fri Sep 15, 2006 4:32 pm


Return to PivotCube VCL

Who is online

Users browsing this forum: No registered users and 0 guests

cron