How does one programmatically change the ZOrder of objects on a
Window during runtime in RealBasic?
(The ZOrder is the front-back relationship of objects.)
It's easy to do this design-time, but how does one do this at runtime?
Also, relating to some other questions I posed earlier, I am making a
number of objects on a Window dynamically. I can do that very well
now (thank you), and I also asked about how to delete objects. The
answer to that was a little unclear.
To create an object, in design-time I make a Canvas called ClipCanvas
with index=0 and put it on the Window. I then make more objects at
run-time like this:
Dim c As Canvas
c = new ClipCanvas
// this creates another ClipCanvas with Index=1
So, to delete this ClipCanvas, do I do this?
ClipCanvas(1).close
One person said this is not correct. Is it? If it is, what does
.Close do? Calls the destructor of the object, and all resources
deleted? What happens when I create another new ClipCanvas object -
does that take the Index of the ClipCanvas I just "closed"? Is it
just me but .Close doesn't sound to much like Kill or Delete or
Destroy or Murder. =)
Does the c = new ClipCanvas assign the lowest available Index number
for that control array?
* * * * * * * * * * * * * * * * * * * * * * * * * * *
| Garth Hjelte |
| Customer Service Representative, President |
| Chicken Systems, Inc, Rubber Chicken Software Co. |
| 714 5th Street SE |
| Willmar, MN 56201 USA |
| |
| 800-8-PRO-EPS Toll Free Order Line (US Only) |
| 320-235-9798 Tech Support, Sampler Questions |
| International Line |
| 360-838-7689 Fax |
| Product Sales: [EMAIL PROTECTED] |
| Product Support: [EMAIL PROTECTED] |
| Sampler Q+A: [EMAIL PROTECTED] |
| Web Page: www.chickensys.com |
* * * * * * * * * * * * * * * * * * * * * * * * * * *
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>