Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Movement.

Status
Not open for further replies.

JE77

Technical User
Aug 29, 2002
12
IE
Hello all,
Just a quick question... Is it possible to restrict the user to using just the TAB key and the LEFT ARROW key when moving from object to object in a form..
Thanks in advance
JE77
 
Sure you could do something like this,

method keyPhysical(var eventInfo KeyEvent)

if eventInfo.isPreFilter() then
;// This code executes for each object on the form
if eventinfo.vchar() = "VK_RETURN" or
eventinfo.vchar() = "VK_RIGHT" or
eventinfo.vchar() = "VK_UP" or
eventinfo.vchar() = "VK_DOWN"then
disableDefault
endif
else
;// This code executes only for the form

endIf
endMethod

Perrin
 
JE77,

It's possible, but really not recommended, for the keystrokes do different things in different situations. Would you mind telling us why you need to do this? There might be a different way to accomplish the same thing.

Hoping to help...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top