Moving Cursor Within That particular field?

185 pts.
Tags:
Cursor operation
Display File
Display File Description
DSPF
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • philpl1jb
    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
    49,590 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following