Ok Sir, Forget All that thing i will ask in simple way this same question?
Dsplay File Field:
Roll No:-ooooooo
mark= -BBBBBBBB-
1)So In that Case When We call Prog At first Roll No field Contains Roll No And marks field will be blank.
2) When Cursor Will Come at Mark field then at that time We have To do code That its Movement will Only on that mark field , Dont Allow Anyone to move corsor anywhere on screen.
Like that , Mark = '-------------------'
Only Withine That Coat ' - ' Cursor Will Move Outside of that coat it will not go. For That purpose i want help.
Software/Hardware used:
ASKED:
July 29, 2010 5:01 AM
UPDATED:
July 29, 2010 1:36 PM
As far as I know, it can’t be done.
You can control where the cursor can move when keys such as the tab keys are pressed, but you can’t stop a user from pressing the cursor movement keys (the “arrow” keys) to move to anywhere on the screen. You can control where your program moves the cursor, but the user is in control of the cursor itself.
Technically, if you lock the keyboard, you can remove control from the user at least in some emulators and on most terminals. But while the user has the ability to type in a field, the keyboard isn’t locked.
Tom
Tom’s right
you can send the file to the screen with the cursor anywhere you want it but you cannot stop the mouse and arrow keys from moving it anywhere on the screen. When the user returns control to the program, you can detect the location of the cursor and you could display a warning message if the cursor wasn’t where it should be.
You can prevent entry into the other fields, perhaps with the DSPATR(PR).
Phil