Board index » cppbuilder » Re: Array properties - now TOwnedCollection

Re: Array properties - now TOwnedCollection


2003-10-29 03:53:06 AM
cppbuilder55
"Remy Lebeau \(TeamB\)" < XXXX@XXXXX.COM >wrote:
Quote

Again, this issue has nothing to do with array properties. They are a
completely separate issue altogether. What EXACTLY do you want to
accomplish?
Your excellent example will get me where I want to go. I
should have been looking at a TCollection all along. Array
properties appeared to be my goal at first, but this makes it
all much clearer to me.
I am creating a component called TTimeBar which will look
something like a TProgressBar. The component will show
different segments in different colors to represent periods of
time. It will be used in a payroll program to illustrate the
different pay rates applied to a given period of time for a
given employee. I have the main component created, derived
from TPaintBox, and it works well. I plan to use the (now)
TOwnedCollection for a collection of TTimeSegment items. These
will then be painted on the main component as segments of a
given color.
-Terry
 
 

Re:Re: Array properties - now TOwnedCollection

"TerryC" < XXXX@XXXXX.COM >wrote in message
Quote
Your excellent example will get me where I want to go.
I should have been looking at a TCollection all along.
Array properties appeared to be my goal at first, but this
makes it all much clearer to me.
The TMyPropertyCollection::MyItems property is an example of a real array
property. As far as the Object Inspector is concerned, it cannot work with
array properties directly, unless you write your own custom property editor
for it (like TFields does). Otherwise TCollection is the easier way to go.
Gambit