Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

different script parameters on button field depending on relative position of mouse click?

Featured Replies

I hope I framed the question clearly. Basically I'm wondering if there is a way to run different scripts from a single calc field that's been turned into a button, thereby simulating multiple buttons. For example, lets say I was simulating a hierarchy inside a portal with an "expand" and "collapse" triangle. Visually reading from left to right, the calc field would show an expanded or collapsed triangle, some space, then some text. The first click expands the triangle while the second click collapses the triangle. This works fine and dandy.

 

But lets say that I also wanted to add some command to the right of the text (in the same field), which would trigger a different script. Is there a way to execute that different script based on the lateral and/or vertical position of the mouse click on top of the field button? Thanks in advance. Oh, and I'm running FMP 12.

Is there a way to execute that different script based on the lateral and/or vertical position of the mouse click on top of the field button?

 

No (possibly with a plugin?). But you could use two (or more) buttons.

The buttons can be transparent and placed over a single unspecified button. :-)

  • Author

Thanks for the replies. And I do sometimes use transparent buttons but in the case the hierarchal display that I have set up dynamically creates different indent widths in the text. I could try and counter this by also dynamically indenting the invisible command buttons but I'm not so much attached to this proposed set up as much as I wanted to know if it was possible (and easy). Thanks again. 

eoneon123,

 

Did you find a solution?  I was looking for advice for my project and this seemed similiar...I think?  Attached image.

 

 

post-107842-0-83371300-1357334769_thumb.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.