TChartPageNavigator buttons
TChartPageNavigator buttons
I find that when I am navigating my chart, using the TChartPageNavigator, that the buttons draw themselves very strangely as I click on them. The example application does the same thing. I cannot imagine that this behavior is desired. But I need to know, how do I make the navigation buttons not drastically change when they are clicked on?
Hi rhyden,
I couldn't reproduce it here. What TeeChart version are you using? Could you verify that the version you are using is the latest available at the download area?
I couldn't reproduce it here. What TeeChart version are you using? Could you verify that the version you are using is the latest available at the download area?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
I am using 7.11. I am getting lots of complains about how these buttons look after the user clicks on them. I will of course check to see if the latest is any different.
Edit: Version 7.12 behaves the same way. The problem is most easily seen when using the "New Features Demo", specifically the "Page Navigator" example.
Edit: Version 7.12 behaves the same way. The problem is most easily seen when using the "New Features Demo", specifically the "Page Navigator" example.
Hi rhyden,
This demo seems to work fine for me here.
The buttons on TChartPageNavigator derive from standard Delphi TSpeedButtons. To check whether an execution feature of TChartPageNavigator is affecting button render you could run an example with conventional TSpeedButtons on your form to see whether they behave in a similar manner.
This demo seems to work fine for me here.
The buttons on TChartPageNavigator derive from standard Delphi TSpeedButtons. To check whether an execution feature of TChartPageNavigator is affecting button render you could run an example with conventional TSpeedButtons on your form to see whether they behave in a similar manner.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 58
- Joined: Mon May 17, 2004 4:00 am
- Contact:
I can make this work in an acceptable way by setting the "flat" property for each button to false. However there is a bug in the control, when accessing the object in the button array, that I must work around to do this.
The following code generates a compile error.
ChartPager.Buttons[0].Flat := false;
(E2010 Incompatible types: 'TTeeNavigateBtn' and 'Integer')
It wants a TTeeNavigateBtn object instead of 0 for the index into the TTeeNavigateBtn button array. This seems quite odd to me. I can work around this by doing the following.
ChartPager.Buttons[TTeeNavigateBtn(0)].Flat := false;
This works just fine.
Thanks for your help.
The following code generates a compile error.
ChartPager.Buttons[0].Flat := false;
(E2010 Incompatible types: 'TTeeNavigateBtn' and 'Integer')
It wants a TTeeNavigateBtn object instead of 0 for the index into the TTeeNavigateBtn button array. This seems quite odd to me. I can work around this by doing the following.
ChartPager.Buttons[TTeeNavigateBtn(0)].Flat := false;
This works just fine.
Thanks for your help.