![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all, i was wondering on how to use the find feature in FM7 on fields that are buttons in browse mode. For example, i have a field that i can click in browse mode. But i would also like to be able to search by that field in find mode. Currently in find mode it still behaves as a button, not as a field i can enter. I have looked at the field format option and enabled the field to be edited in find mode. If i remove field from being a button, then in find mode it works fine. Thanks for the help. |
#3
| |||
| |||
|
|
pri wrote: hi all, i was wondering on how to use the find feature in FM7 on fields that are buttons in browse mode. For example, i have a field that i can click in browse mode. But i would also like to be able to search by that field in find mode. Currently in find mode it still behaves as a button, not as a field i can enter. I have looked at the field format option and enabled the field to be edited in find mode. If i remove field from being a button, then in find mode it works fine. Thanks for the help. Those are your choices. A button is a button in either mode. The workaround is either to tab into the field or script entry using Go To Field. It was nice when they gave us Field Behavior, separating entry into the field in Find versus Browse. On my "Nice to have" wish list is what I will call "Conditional Buttons," which would allow us to specify a button based on a calculation or other criteria, such as whether a button in Browse would is also a button in Find, etc. Yes, we can script button behavior based on Mode, modifier keys and calculations, but we can't enter a field in Find by clicking on it if it is defined as a button. Conditional Buttons would be handy in a situation such as this. |
#4
| |||
| |||
|
|
In article <z3Fye.8835$vE5.7468@trndny07>, "Matt Wills" <I'm (AT) Witz (DOT) end wrote: pri wrote: hi all, i was wondering on how to use the find feature in FM7 on fields that are buttons in browse mode. For example, i have a field that i can click in browse mode. But i would also like to be able to search by that field in find mode. Currently in find mode it still behaves as a button, not as a field i can enter. I have looked at the field format option and enabled the field to be edited in find mode. If i remove field from being a button, then in find mode it works fine. Thanks for the help. Those are your choices. A button is a button in either mode. The workaround is either to tab into the field or script entry using Go To Field. It was nice when they gave us Field Behavior, separating entry into the field in Find versus Browse. On my "Nice to have" wish list is what I will call "Conditional Buttons," which would allow us to specify a button based on a calculation or other criteria, such as whether a button in Browse would is also a button in Find, etc. Yes, we can script button behavior based on Mode, modifier keys and calculations, but we can't enter a field in Find by clicking on it if it is defined as a button. Conditional Buttons would be handy in a situation such as this. As you say, you can easily script the button bahaviour based on Mode. All you need is to have your button's script check Status(CurrentMode) and then act accordingly. ie. If Status(CurrentMode) = 1 /* we're in Find Mode */ Go To Field [WhichEver_Field] else /* we're in Browse Mode */ {do whatever happens when in Browse Mode} End If The only real problem here is if when in Find Mode the user goes to another field and then realises there's a typo in the button field - you can't position the cursor / select text using the mouse until after the script has been run and performed the Go To Field command. You don't need to worry about Preview Mode or Layout Mode since buttons don't function in either of these, but for the sake of completeness: Status(CurrentMode) = 0 --> Browse Mode Status(CurrentMode) = 1 --> Find Mode Status(CurrentMode) = 2 --> Preview Mode Status(CurrentMode) = 3 --> Printing in progress Running a script in Layout Mode switches FileMaker back to Browse Mode anyway. Presumably that Status function is now Get(CurrentMode) in FileMaker 7. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
hey!! thanks for all your tips. But i found another way of doing it. I duplicated the all the fields that were buttons and i wanted to be able to use in find mode. then i removed from the duplicates the button feature and made thier fill transparent. Then i overlayed it exactly on top of the original fields. Now in browse mode, the "two fields" are buttons and in find mode i can click in and use them. The ONLY disadvantage of this is that since i overlayed the same field on top of another field, they both show the same values in browse mode and so the text seems to be darker and bolded and a bit blurry. Comments or suggestions? It seems to do what i want but are there any other sideffects to it? Thanks all! |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Nope! i have double checked the alignment and both fields' are exactly on top of each other in the same position. If i move one of the fields away, the text is lighter. But together, they are dark and blurry. Any ideas? |
#9
| |||
| |||
|
|
The ONLY disadvantage of this is that since i overlayed the same field on top of another field, they both show the same values in browse mode and so the text seems to be darker and bolded and a bit blurry. Comments or suggestions? It seems to do what i want but are there any other sideffects to it? Thanks all! That indicates they are not exactly aligned and/or not the same color. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |