dbTalk Databases Forums  

Deactivating controls in a script

comp.databases.filemaker comp.databases.filemaker


Discuss Deactivating controls in a script in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JoeT
 
Posts: n/a

Default Deactivating controls in a script - 12-20-2006 , 06:30 PM






Newbie question:

Is there any way in a script that I can make a control (e.g. button,
radio, checkbox, etc) read-only?

TIA,
Joe


Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Deactivating controls in a script - 12-20-2006 , 11:28 PM






In article <1166661020.387402.160540 (AT) n67g2000cwd (DOT) googlegroups.com>,
"JoeT" <trubisz (AT) yahoo (DOT) com> wrote:

Quote:
Newbie question:

Is there any way in a script that I can make a control (e.g. button,
radio, checkbox, etc) read-only?
The easiest way would be to put a small "invisible" rectangle / circle
over the radio button / checkbox and then have that run a script
something like:

If (DataEntryAllowed = "Yes")
Set Field (DataField, Value)
else
Show Message ("Field is read only")
End If

You'll need a separate "invisible" rectangle for each radio button /
checkbox option. In older versions of FileMaker you'll also need a
separate script for each option, but in newer versions you can make use
of the parameter ability to pass one script a variable depening on
which option is being clicked on.

I don't quite see how a button can be "read only", but I'm guessing you
you mean "ghosted" / "non-functional". In this case you'd need to have
a Container field postioned above the button which is empty when the
button is working and set to a dimmed graphic version of the button
when "non-functional".

There may or may not be a better way in newer versions of FileMaker.
The new ability to name objects may lead to more scriptable abilities
in future versions of FileMaker.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.