Raybaudi Posted March 23, 2005 Posted March 23, 2005 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)
sbg2 Posted March 23, 2005 Posted March 23, 2005 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.
Raybaudi Posted March 24, 2005 Author Posted March 24, 2005 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 ?
sbg2 Posted March 24, 2005 Posted March 24, 2005 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.
comment Posted March 24, 2005 Posted March 24, 2005 You can go to another layout where the button is disabled.
fbugeja Posted March 28, 2005 Posted March 28, 2005 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
comment Posted March 28, 2005 Posted March 28, 2005 I believe the poster made it quite clear: the button becomes inactive AFTER it has been clicked ONCE.
Vaughan Posted March 29, 2005 Posted March 29, 2005 You could use the "visibility" portal disappearance trick. http://www.filemakerpros.com/Visible.zip
Raybaudi Posted March 29, 2005 Author Posted March 29, 2005 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now