Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8045 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How can I get an object to move the front via a script? When I click on a button I want an object to move to the front and then go back after released. I appreciate any input you can give.

Thanks,

John

Posted

The bringing object to front as such is not scriptable, but there are workarounds that simulate that.

You can place a calculated container field on top of the object to show/hide. The cal.cont.field refers to two other global container fields (or preferably one global repeating container field with two repetitions, one empty and the other filled with an image of a background color). Then you make the calculation 'obeying' a variable that defines which repetion shows, the empty one or the background color.

The field itself must not have a color of its own. Fiddle around also with the menu: Graphics: Reduce or enlarge image to fit. (into the field).

The click of the button can set that variable in the script the button starts, that's easy, but the 'then go back after released' is a problem, as there is no status function checking whether the mousebutton is depressed or not.

So you've got to use your imagination on that point.

Harryk

Posted

What I am doing is trying to implement Cobalt Sky's "click tips" into my project. On the example that he has for download, he has several buttons that are spread out and have enough room to place the click tip fields far enough apart so they don't overlap. On my layout, I don't have that much room and a few of them overlap. I was hoping there was a way to have the fields come to the front when you wanted a certain click tip. It sounds like I may have to either forget about the click tips or find some more room somewhere.

John

Posted

I am implementing click tips in several different files. In 3 of them, I am able to line up all the global click tip fields and they can overlap. They display just fine when they are supposed to. But in the 4 th file, I am not able to overlap the fields at all. It either displays it behind another object or blocks out an object on the layout. What would be the difference between the files? Thanks for the help.

John

This topic is 8045 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.