May 21, 200322 yr Hi Filemakers, Does anybody knows how to add a button to the TAB order and have it activated by pressing ENTER.
May 21, 200322 yr 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
May 22, 200322 yr 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
May 22, 200322 yr 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
May 22, 200322 yr 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.
May 22, 200322 yr 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)
May 22, 200322 yr 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
May 22, 200322 yr [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
May 23, 200322 yr 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
May 23, 200322 yr 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
May 23, 200322 yr 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.
Create an account or sign in to comment