Jump to content

Displayed order of objects when creating at runtime


likemike

Recommended Posts

Hello!

I create some memos and panels during runtime in a Unimscrollbox (parent) - Server-side-alignment. Unfortunately the order shown is not the same as the creation order.

I've tried this workaround 

But it has no effect.

I've attached a testcase!

Regards

Mike

 

 

 

Unigui.rar

Link to comment
Share on other sites

@Sherzod:

Here you helped pro_imaj with a similar problem:

I tried this with UnimScrollBox instead of UniFieldSet, but this doesn't work:

        JSInterface.JSCallDefer('items.items.sort', [JSInterface.JSStatement('function(a, b) {a = a.uname;b = b.uname;if (a === b) {return 0;}return a < b ? -1 : 1;}')], 5, UnimScrollBox1.JSControl);
        JSInterface.JSCallDefer('updateLayout', [], 10, UnimScrollBox1.JSControl);

 What do I wrong?

Link to comment
Share on other sites

×
×
  • Create New...