TRzTabSheet.ComponentCount is zero

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

TRzTabSheet.ComponentCount is zero

Postby visli » Sat Apr 09, 2011 10:38 am

I have add some controls on the TabSheet, but the TRzTabSheet.ComponentCount return 0.
visli
 
Posts: 1
Joined:
Sat Mar 26, 2011 6:40 am

Re: TRzTabSheet.ComponentCount is zero

Postby Raize Support » Sat Apr 09, 2011 12:19 pm

The Components list and the ComponentCount property represents the number of components (TComponent descendants) that a component owns. To get the number of controls that are parented by a TWinControl descendant, you use the Controls list and ControlCount property.

For example, if you drop a TRzButton on a TRzTabSheet, the button will be owned by the form, but the button's parent will be the tabsheet. As a result, TabSheet1.ComponentCount will be 0, but TabSheet1.ControlCount will be 1.

Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 616
Joined:
Fri Mar 25, 2011 9:04 pm


Return to Panels

Who is online

Users browsing this forum: No registered users and 1 guest

cron