pvivacqua Posted May 21, 2003 Posted May 21, 2003 Hi Filemakers, Does anybody knows how to add a button to the TAB order and have it activated by pressing ENTER.
paulage77 Posted May 21, 2003 Posted May 21, 2003 You can add it to the TAB order by going to Layout Mode, Then going to Set Tab Order under the Layouts menu. Not sure about doing buttons if that is possible. You must be trying to automate something in windows
Lee Smith Posted May 21, 2003 Posted May 21, 2003 nope. you can not access a button with a tab. Sorry, Lee
cjaeger Posted May 22, 2003 Posted May 22, 2003 Hi Lee, If you are on Windows with WSH installed, try this. It shows how to trigger a script by tabbing in a field. You have to do tab + <space> though. button with tab.zip
Lee Smith Posted May 22, 2003 Posted May 22, 2003 Hi Christian, I'm on a Mac I know how to do workarounds to activate a script upon entering or exiting a field. However the question was how to get a button into the tab order and AFAIK it can't be done. Lee
cjaeger Posted May 22, 2003 Posted May 22, 2003 But what do you need the button for if you just want to tab into the field? Since you can make any Layout object a button, you could even have both ways of accessing it. Anyway, it's a hack, is slow & does probably not work on every [windows] computer. So maybe, if you could share your wisdom & tell the forum your workarounds to activate a script upon entering or exiting a field, this would be great.
cjaeger Posted May 22, 2003 Posted May 22, 2003 Lee, btw., How do you like the visibility trick with the container fields? Was new to me, just came across it. (works on mac, too)
Lee Smith Posted May 22, 2003 Posted May 22, 2003 Hi Christian, I didn't need to do this, this was the question asked by pvivacqua. I was only responding. As far as me sharing my wisdom (what a laugh ) with a way to activate a script when entering or exiting a field, I just answered this question in another thread "enter and script" asked yesterday (I believe) in this Forum. Basically the workarounds I know of are, to use a looping script, or use a value list and hard code the values in a script that will activate when you click outside the field. Samples of both can be obtained at these URLs: "Script Execution on Exiting Field" by Al Fleming URL: http://www.fmfiles.com/tnt8.html "More Field Exit" by James E. Mastrianni URL: http://www.databasepros.com My preference is the value list and a script. HTH Lee
Lee Smith Posted May 22, 2003 Posted May 22, 2003 [color:"blue"]Lee, btw., How do you like the visibility trick with the container fields? Was new to me, just came across it. (works on mac, too) I'm not sure which file you are referring to, please expand as to name of file and author? TIA Lee
cjaeger Posted May 23, 2003 Posted May 23, 2003 was referring to my attachment above. If you have to container fields positioned exactly aligned, the one in the back does not display when active as text fields do. However, when the field is rotated 180
Lee Smith Posted May 23, 2003 Posted May 23, 2003 Hi Chrstian, Well I didn't download it before becuase you said it was windows only and that I would need WSH (whatever that is). Okay, so now I download it and by golly it is a widows only file. However, funny thing, I could see it work a little. Lee
Fitch Posted May 23, 2003 Posted May 23, 2003 Did somebody say... container field? I think that's the Evil FileMaker Hack you're looking for. I.e., rather than putting the button directly on the layout, paste the button graphic into a container field. Now you can start a script like this: Loop ..Pause .. If [status (CurrentFieldName) = "myButton"] .. .. Show Message ["Hello World"] .. .. Exit Script .. End If End Loop You could do this more elegantly with a plugin such as Events or www.troi.com/software/activatorplugin.html " target="_blank">Troi Activator.
Recommended Posts
This topic is 7859 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