Well, I  think your first step is going to be to subclass the  
Listbox.  Then, add the property you want (myIndex as integer?) to  
the subclass.

Then in your application, when you do the clone to create the new  
listbox, grab its index and put it into myIndex.

I think that's how it would work, although there may be a more  
efficient way of putting the index into your property by using the  
Listbox's Constructor.

On Feb 25, 2007, at 4:11 AM, Wade Maxfield wrote:

>   I would like to add a property to a listbox, which I am cloning  
> through
> the use of an index.  I would like to know the index of the listbox  
> when all
> I have is the "me" information.  I want to save the top,left info  
> (and other
> stuff) into an array after a listbox drag, based on its clone index  
> for
> saving/restoring the listbox when the user restarts the application.
>
>   I've looked at extends, but I don't want a method, as the method  
> would
> require someplace to save the data.  If I had someplace to save the  
> data
> (which is not global), and would be unique to that instance of the  
> class,
> (ie: a property) I would not need a method.
>
>   I know I can create an array of listbox objects and then do an  
> array loop
> to find the index of "me", but I would like to make it quicker than  
> that.
>
>   I've looked through the archives and the  language guide, but I  
> feel I'm
> missing something obvious.  I need a brief code example.
>
> thanks,
> wade

-- 
David Glass - Gray Matter Computing
graymattercomputing.com - corepos.com
559-303-4915

Apple Certified Help Desk Specialist

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to