Display current page number in dbChart

Asked

Viewed 81 times

1

I have a dbChart displaying data on multiple pages. In a specific graph, for example, there are thirty points to display, but in the property MaxPointsPerPage set only 10 (ten) points per page.
I have created navigation buttons between pages for the user, but what I want is to display to the user which page it is on.
For example, Page 3 of 10.
I can do it manually (via programming).
My doubts are:

  • It is possible to do the above request natively on dbChart?
  • If yes, how?

1 answer

2


Not.

And using the native properties of TDBChart you can use:

Label1.Caption := 'Pág. '+ IntToStr(DbChart1.Page)+ ' de ' + IntToStr(DbChart1.NumPages);

You can use the OnPageChange to update who will receive this amount! If a new page is added it will automatically update the receiver!

  • Thanks for the answer, it will certainly be useful. But as for your editing in my question, I found it totally unnecessary. It was in good Portuguese, so I saw only one grammatical error. And the question was clear. If I edit every question that has a different phrasing than I wish... I will edit all the questions from Stack.

  • And although the answer is valid. it does not answer what I asked. For as I mentioned, via programming I can show the pages. I wanted to see if there’s a way to do this natively (with only one property of the dbchart, for example).

  • @Andrey, About the editing, it is exactly that friend, it is normal for the questions/answers to be edited for a better understanding (not to make it beautiful), you are using Tag char that has nothing to do with your question, why the editing, but that’s okay! As for the answer, I posted the code because you quote that you can but you don’t post what you got, but that’s okay! I’ll edit my answer!

  • And still about EDIT Questions/Answers there are rewards for these acts, and more, Welcome (considering the 4 months).

  • So @Júnior Moreira as I mentioned, I am grateful for your response. As for Tag Chart really had not seen this edition of its part (consider valid). But as to edit questions already clear to earn reward, I do not think right. Anyway, it may be that still lack knowledge of Stack for my part. Thanks for the tips.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.