DISABLE KEYS IN TEMPLATES. (AREV Specific)
At 29 AUG 2000 05:02:47AM Peter Kassinski wrote:
Hello,
My target is disable Ctrl-P in window.
I use old method - put in PreInitialize prompt CNRL_P, where
CNRl_P is next program:
SUBROUTINE CNTR_P
KEYS.OFF=FIELD(@RECORD,CHAR(247),43)
KEYS.OFF := CHAR(254):CHAR(16)
* CNTR-P IS CHAR(16)
@RECORD=FIELDSTORE(@RECORD,CHAR(247),43,-1,KEYS.OFF)
RETURN
But I have no result.
What is wrong ? Is CNRL-P a special
combination ? Because I use this method for disable ALT-C, ALT-D with good effect .
Thanks.
At 29 AUG 2000 09:14AM Don Miller - C3 Inc. wrote:
Methinks that DOS or the BIOS gets there first and so AREV can't disable it. Ditto with print-screen.
Don Miller
C3 Inc.
At 29 AUG 2000 09:46AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
I'm not sure what Ctrl-P is. Perhaps you mean Alt-P which is \0019\.
World Leaders in all things RevSoft
At 30 AUG 2000 04:07AM Peter Kassinski wrote:
Thank you for your answer.
Ctrl-P means print data from current window.
And what do you think in this case ?
Best regards.
At 31 AUG 2000 09:59AM Don Miller - C3 Inc. wrote:
My earlier response applies here. Windows gets the keystroke and acts on it before AREV can see it. The same would apply to the Print Screen key (if it's enabled in the properties of the shortcut, it is passed to DOS - which may redirect it to a network printer). If it's not enabled then the current screen is copied to the clipboard. In either case, you can't trap it in AREV. Almost all of the windows-reserved keys can't be disabled in AREV since they are grabbed ahead of AREV and acted on.
Don Miller
C3 Inc.