March 23, 200520 yr 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)
March 23, 200520 yr 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.
March 24, 200520 yr Author 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 ?
March 24, 200520 yr 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.
March 28, 200520 yr 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
March 28, 200520 yr I believe the poster made it quite clear: the button becomes inactive AFTER it has been clicked ONCE.
March 29, 200520 yr You could use the "visibility" portal disappearance trick. http://www.filemakerpros.com/Visible.zip
March 29, 200520 yr Author 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...
Create an account or sign in to comment