Jump to content

Disable a button in Find Mode?


Macfreq

This topic is 6176 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a checkbox field that I've defined with a button over it so when it is clicked it runs a script. The problem is when I go into Find Mode I need to be able to search based on this checkbox, but in find mode the button is still active so I can't directly select the checkbox.

This is probably a basic question, is there a way to disable the button when in Find Mode?

Thanks.

Link to comment
Share on other sites

One way would be to start the script that is attached to the button with the following

If Get(Windowmode)=1

go to field check box

halt script

endif

That will check to see if you are in find mode (windowmode=1) and if so put the cursor into the check box field in order for you to mske your entry. If you are not in find mode it will just bypass this bit of the script

HTH

Phil

Link to comment
Share on other sites

This topic is 6176 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.