Dear David,
Then, what is the suggested method of moving around the dynamic UI objects? to
create and destroy objects continuously?
Thanks in advance!
philip
David Fedor wrote:
> >I want to move dynamic UI objects around in the same form...
> >...
> >In emulator , it forces me to reset after running the last statement.
> >However, if I replace a, b with 2 static UI. It works!
> >
> >Why?
>
> Well, you're fiddling with the private data structures of an object which
> isn't expecting for you to move it around. Messing with an object's
> internal structures may sometimes do what you want, but won't always.
>
> The UI objects don't have support for being moved around. With enough
> knowledge of the CURRENT implementation of the objects, you could probably
> force it to happen. But when a future OS revision comes out, which
> hypothetically changes the implementation of the objects, then your app
> will have real trouble and who knows what would happen.
>
> It would probably be better if you destroyed the old object and created a
> new one at the location you want. That's the only safe way to do it. It
> doesn't take very much time at all to create and destroy UI elements.
>
> -David Fedor
> Palm Developer Support