Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
This all works fine for me. I set an initial value of "NumberOfObjects" to 1, but that does not matter. Since the value in line 2 is a number, the layer is properly set in line 3.
What are you seeing? Are you sure you know how layers work?
I am seeing that my image in the card doesn't go to the layer I assigned with the code. I know that layers works like this: Higher value of layer means it will be always on top of the other objects layer that have lower value. I look into the application browser, the value of the layer of the image still remain the same after running the code. I used on mouseUp to trigger the code. Also the on mouseUp is assigned to the buttons by sharing behavior.
Oh, I see it now. No matter what layer value you assigned, the layer will be automatically reduced to the highest possible value of layer compared to the others. Thanks.
If i use answer for poping-up the loading notification, can I make it without the "ok" button?
Well, is there anyway I can make a pop up that is always on top of the card while some controls are being created after the pop up?
Sure, you simply have to manage the layers of the popup and the new controls. LC only offers its default behavior, that new controls take the top layer. So, managing the popup is likely simpler, perhaps by trapping the "new[control]" message, you can explicitly reset the popup layer to the top.
Cheong wrote:Well, is there anyway I can make a pop up that is always on top of the card while some controls are being created after the pop up?
if your "popup" is hidden you can do something like this:
...
set the layer of grp "your popup, presuming it's a group" to TOP
show grp "your popup, presuming it's a group"
...
I've been doing this for years