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

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

Recommended Posts

Posted

Hi to all friend!

Can a button perform a script that, among other things, send itself a "do nothing" ?? (so the button never highlights anymore)

Posted

Do nothing? Sure... use an if statement

If(This condition is true)

Else

Do these script steps

End If

As far as highlighting FM doesnt offer a way to disable the Mouse Click event. Even if the script specifies the button to do nothing it will still "highlight" with that ugly black shading.

Posted

many thanks sbg2

so it is not possible to assign the "Do Nothing" to a button by a script !

( it is only possible during the definition of the button )

Do you think that there is a possible workaround to this situation, so that i'll never see that ugly black shading ?

Posted

I'm not aware of a work around but there may be plug-ins available, you would have to search.

My guess is when you specifiy a button to Do Nothing Filemaker treats the object like a field that has the "allow field to be entered in browse mode" option unchecked (is this available in version 6?), ie. its not a button but a display field. I assume even if they would add Do Nothing as a script step you wouldnt be able to stop the highlighting is my guess.

Filemaker gets a click event, If the object is defined as a button it highlights the button then it performs whatever is assigned to the button. The script part would come after the button has already been highlighted. It would be nice if they allowed programmers to handle Mouse Overs and Click events.

Posted

My query:

If you want a button to do nothing, why include it? If you don't want a button to highlight, why not simply create a graphic that looks like a button in an image editing program such as Photoshop and paste it into FMP as a graphic?

Frank

Posted

thanks to all friends

my question was a subdule question!

I really wanted to "Get the Button Status" and change it dinamically within the script of the button itself (or with a generic script).

I can change the text of the button (if I use a merge field as the text of the button), I can change the script the button executes (with the Get(script parameter) function), but I can't stop it to highlight...

(I know how to hide the button or change the button shape)

if only there was been the SetButtonStatus and GetButtonStatus...!!!frown.gif

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