Neuronal Nerd Posted October 23, 2007 Share Posted October 23, 2007 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 Link to comment Share on other sites More sharing options...
David Jondreau Posted October 23, 2007 Share Posted October 23, 2007 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. Link to comment Share on other sites More sharing options...
Neuronal Nerd Posted October 23, 2007 Author Share Posted October 23, 2007 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)? Link to comment Share on other sites More sharing options...
David Jondreau Posted October 23, 2007 Share Posted October 23, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6164 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