Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Problem with Conditional Formatting withGetLayoutObjectAttribute


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

Recommended Posts

Posted

I want some buttons to switch between slide panels, and want a visual representation of which panel is the front one. 

I used Conditional Formatting to change the fill color of each button using the GetLayoutObjectAttribute("ThePanelObjectName"; "isFrontPanel") function.

Most of the time, the button fill color does not change until the mouse pointer is no longer hovering over it, and other buttons (for which "isFrontPanel" is no longer true) do not change until the mouse pointer hovers over them. Occasionally, it works as iI intended.  See the attached sample.

Is there a workaround, or a better method to create the desired behavior?

 

GLOA problem.fmp12.zip

Posted

Still doesn't work for me. Especially if you just use the panel navigator dots.

Posted

"Especially if you just use the panel navigator dots."

The conditional formatting of the buttons could be seen only if the window is refreshed.
Using the navigator dots doesn't refresh the window, so it's better to hide them.

Posted

Thank you, Daniele. The real file does indeed hide the navigator dots, but I didn't do so in the sample.

Posted

If you need the DOTS, it is better to use scripting and a script trigger on the Panel when it is changed (onPanelSwitch). To simplify, I am setting a global variable $$panel (in the background). Button conditional formatting are based on that variable.  When using the DOTS to navigate (or swipe on mobile) the Switch Panel script is triggered BEFORE the next panel, so the the logic in the script triggered reflects that.

Tear it apart. If you have any questions, please ask.

Hope this helps!

dwdc_GLOA problem.zip

This topic is 3448 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.