How do I query 'What object is on top?'

2007-01-22 Thread Mark Powell
Can't find this anywhere in docs or archives. How can I determine what object is occupying the top layer of a card at a given moment? Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille
Hi Mark, put the layer of the last control Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 22-jan-2007, om 18:11

RE: How do I query 'What object is on top?'

2007-01-22 Thread Mark Powell
] On Behalf Of Mark Schonewille Sent: Monday, January 22, 2007 10:22 AM To: How to use Revolution Subject: Re: How do I query 'What object is on top?' Hi Mark, put the layer of the last control Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http

Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille
Mark, On second thought, maybe this is what you want: function topControl repeat with x = 1 to number of controls if the layer of control x is the number of layers then return the id of control x end repeat end topControl It would be nice to do this without repeat loop, though.

Re: How do I query 'What object is on top?'

2007-01-22 Thread Richard Gaskin
Why not this?: get the long id of the last control -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list

Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille
Because this returns the number and not the layer. Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 22-jan-2007, om 18:34

Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Smith
Not tested but should work: get the name of control (the number of controls of this cd) of this cd Best, Mark On 22 Jan 2007, at 17:11, Mark Powell wrote: Can't find this anywhere in docs or archives. How can I determine what object is occupying the top layer of a card at a given moment?

Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille
That won't work because number and layer is not the same. It would be exactly equal to put the name of the last control Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web

Re: How do I query 'What object is on top?'

2007-01-22 Thread Richard Gaskin
To get the topmost object: get the long id of last control To get its name: get the short name of the last control To get its layer: get the layer of the last control To get its type-specific number: get the number of the last control What else is needed? -- Richard Gaskin

RE: How do I query 'What object is on top?'

2007-01-22 Thread Mark Powell
Richard, This does do what I was asking about, thanks! Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Gaskin Sent: Monday, January 22, 2007 1:02 PM To: How to use Revolution Subject: Re: How do I query 'What object is on top?' To get