davidnickerson Posted January 3, 2016 Posted January 3, 2016 I need to use the Get ( ActiveLayoutObjectName ) function for some window positioning scripts. However, I can't seem to find a way to actually get the active layout object name. The example from Filemaker's own website states: "There is a named button on the current layout called cancelButton. When the focus is on the button, Get(ActiveLayoutObjectName) returns cancelButton." Perhaps I'm unclear on the concept of "focus". I have a Button on my layout called "test". I have named the button/object "test" using the Position Tab in the Inspector. I made a simple script using only the Show Custom Dialog step which returns Get ( ActiveLayoutObjectName ). Clicking on the button returns null (blank) for the Custom Dialog. Similarly, Data Viewer (showing Get ( ActiveLayoutObjectName )) shows nothing when clicking the button. What do I need to do in order to "focus" on a button? Thank you for your help.
comment Posted January 3, 2016 Posted January 3, 2016 2 minutes ago, davidnickerson said: What do I need to do in order to "focus" on a button? Tab into it. If you want the script to know how it was called, use the script parameter.
Agnes Riley Posted January 3, 2016 Posted January 3, 2016 If I'm correct you'd need to have a script that goes to the button to make it active. If you click the button it won't be active. So you might need a hidden object whose name you can get underneath your button. See my attached example file. Hope this helps. Agi test.fmp12
Recommended Posts
This topic is 3303 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 accountSign in
Already have an account? Sign in here.
Sign In Now