Disabling symbols when CAPS LOCK is on

allanm

New Member
Hi,

I am using progress 8.3D for DOS Character User Interface (CHUI). In the progress editor if the CAPS LOCK key is ON the symbols are activated instead of numbers on the number row of the keyboard (the row on the keyboard after the Function keys F1, F2, etc.) . I want it to input numbers only irrespective of the CAPS LOCK status.

Any way to achieve this.?

Thanks in advance.
Allan
 
Do this

<pre>
ON "ANY-KEY":U OF FILL-IN-1
DO:
IF INDEX(')!"£$%^&*(',CHR(LASTKEY)) > 0 THEN
DO:
APPLY STRING(INDEX(')!"£$%^&*(',CHR(LASTKEY)) - 1) TO SELF.
RETURN NO-APPLY.
END.
END.
</pre>
 
Neat solution Bendaluz :)

But bear in mind that if the user is likely to enter negative numbers it will need a ilttle expansion to cope with the underscore / minus key.
 
Wow.
I read the original question different than all of the other reply-ers. I understood the problem to be that when HE (as opposed to his users) was having the problem IN THE EDITOR. I was going to ask things like which editor is he using and has he tried either a different editor or seeing if there was a way to change the keymap inside the editor. Personally I'm using SecureCRT as my editor and it doesn't have the problem that his does.

So which is it Allan, is the problem for you while inside the editor ie while writing the program Or is the problem when the users go to run the program?

Mark
 
Mark,

I'm guessing that, as there have been no further posts by Allan, the problem is for the users. If it is in the editor then I'm not sure how Allan would get round it. I've personally never seen this behaviour before - not knowing the operating system, whether Allan is using an emulator, or any other details it's difficult to give other than general solutions.
 
Couldnt he simply run a procedure when starting up his development enviroment, with something along the lines of

on "any-key" anywhere
do:
if defined (&uib_is_running)
do:
(code i posted before)
end.
end.

I have written code before which changed the way the arrow keys worked in browsers, and it affected the way they worked in the uib too, so I know you can do this.
 
Hi,

Thanks to all who replied. I think Mark got the problem right.

Mark for your information, i am using the progress Editor on the DOS platform (CUI). This problem exists even in the CUI progress applications on the DOS platform.

Thanks in advance

-Allan
 
Well, I get a gold star for understanding the problem. But I don't really have an answer. Just a suggestion for what to go 'fishing' for. I SUSPECT that it has to do with the key mapping in your editor. I'm not familiar with the editor your using, so I can't be specific at all. But dig around and see if there is a place where you can change the mapping of keyboard keys. In the editor that I use there is a keyboard icon that takes me to where the map can be edited. However it does NOT allow me to change or even view the map on the CapsLock key. Otherwise I'd tell you what mines is set for so you could set yours the same way. You might try (if it's allowed in your world) downloading the editor I'm using and see if that solves your problem. It an be found at http://www.vandyke.com/products/securecrt/
I believe there is an evaluation version, so you don't even have to spend money up front.

Good luck!
Mark
 
Hi,

Thanks Mark. I think i have to search something on the Key Mapping Front. As far as the SecureCRT suggestion is concerned, i am already having the software with me. But my main problem is not of the progress Editor. The problem is with user applications. This problem is faced by the user. thanks for the suggestions anyway.

--Allan
 
Back
Top