Hi,
I have a form that can be “locked” – meaning, the data can be viewed, but should not be changed.
What I’ve done is create a “lock” procedure that looks like this.
There’s a FileGlobal variable called fgLock .
Case fgLock=""
//fgLock=""
// re-enable all objects
SelectAllObjects
ChangeObjects "disabled", False()
Case fgLock="1"
//fgLock="1"
// disable all objects
SelectAllObjects
ChangeObjects "disabled", True()
EndCase
ShowVariables fgLock
SelectNoObjects
CloseActiveObject
This does work well.
The one, more cosmetic, issue I have is that when the form is present, and is locked, and the user hits the “Tab” key, one of the Text Editor Objects will get its text highlighted.
Note: the data canNOT be edited … but, it highlights as if it were editable.
Is there a way to ensure that hitting the “Tab” does NOT highlight any editable fields?
TIA!!
