realbasic-nug
[Top] [All Lists]

Re: Which control am I

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Which control am I
From: Joe Rickerby <joerick at mac dot com>
Date: Tue, 31 Aug 2004 13:26:22 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20040831120701 dot 1961 dot qmail at web50905 dot mail dot yahoo dot com>
This is the only way I know
  dim i as Integer
  for i=0 to ControlCount-1
    if Control(i)=me then exit
  next

Joe

On Aug 31, 2004, at 1:07 pm, Bob Gordon wrote:

Hello.

All the controls in a window are available through the
window's control array. So, each control effectively
has an "index number" in the array.

Is is possible to know what the index number of a
control is?

For example, given an arbitrary control, I wish to
hide or show the next five controls. I could loop
through the entire array, but it would be nice if I
knew where to start.

-Bob Gordon

=====

Coming Soon!
The Book of Fictional Days 2005
Ask for it at a bookstore near you or directly from the publisher at:
http://www.tide-mark.com/book-fictional-days.html
Published by Tide-mark.



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

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>


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

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>