October 23, 200718 yr I found this file in another post, but I did not want to hijack the post for my own question. How does the graphic change when the user clicks on it. This is a feature of FM that I've not yet figured out, yet I see it everywhere. This must be something simple. Thanks ahead for answers. LockIndividualFields.fp7.zip
October 23, 200718 yr There's several ways to achieve this effect. In this case, the developer used a script and a font called WebDings. When you click on the field (which is also a button) a script runs setting the field to either 0 or 1 (depending on what the value was) and the WebDing font shows that number as a open or closed lock.
October 23, 200718 yr Author I see...so that "picture" is actually a single character returned with a particular font. That sounds efficient as opposed to loading up a solution with a lot of large graphics. My eyes are now opened to a lot of possibilities and I think I can figure out that script now. If I did want to use a particular graphic (such as a bmp), how do I achieve a similar effect (i.e., the picture changing when someone clicks on it)?
October 23, 200718 yr You'd need the pictures you wanted stored somewhere, a global container field is the simplest (though loading global variables on start up or using a non-global field could work depending on the solution). Then it's all in the scripting. Click on the button/field and run a script that checks the current value of the field and then sets the field to the appropriate global container.
Create an account or sign in to comment