Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread PageCount property?
Mon, Jun 1 2015 12:43 PMPermanent Link

Trinione

Hi:
How can I get the PageCount value of a TPagePanel control?

I am seeing that the TPagePanel inherits from the TPagePanelControl which has the PageCount property, but I don't know how to get to it.
Mon, Jun 1 2015 12:48 PMPermanent Link

Trinione

Clearly I have been programming in too many languages lately.

The answer for anyone interested is:

   TPagePanelControl(PagePanel1).PageCount
Mon, Jun 1 2015 1:27 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< How can I get the PageCount value of a TPagePanel control?  >>

It's a public property of the TPagePanelControl component (the ancestor of
TPagePanel), so you can just refer to it directly for any TPagePanel
instances.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jun 1 2015 1:29 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< The answer for anyone interested is:

  TPagePanelControl(PagePanel1).PageCount >>

You don't need to do a cast, just use this:

PagePanel1.PageCount

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jun 1 2015 3:20 PMPermanent Link

Trinione

Got it! Thanks.
Image