Alt-C (AREV Specific)
At 11 DEC 2006 04:49:03PM Aiden Massey wrote:
Any way of disabling Alt-C in a window - Arev 2.12.
Tried
And
And
And
Include Edit.keys has no reference to Alt-C
At 12 DEC 2006 03:13PM Karen Oland wrote:
You can remap the keys to do other things:
clear previous key redefinitions@PRIORITY.INT=field( @PRIORITY.INT, fm$, 1, 18 )@MACRO.KEYS=field( @MACRO.KEYS, vm$, 1, 10 )@MACRO.KEYS=field( @MACRO.KEYS, vm$, 1, 10 )
remap Alt-C to display
a popup calendarscancode=\002E\@PRIORITY.INT=scancode@MACRO.KEYS=S'@MACRO.KEYS=CALENDAR_POPUP'
At 12 DEC 2006 05:44PM Victor Engel wrote:
I reread my post you cited. The code is correct except that char(3) is the scan code for ctrl-c not alt-c. The scan code for alt-c is char(0):char(46). Make that substitution and it should work. Sorry for the confusion.
At 13 DEC 2006 10:20AM Michael Slack wrote:
Hello Aiden:
I work in Arev 3.12 but I'm sure 2.12 has something very simular. Since you didn't say if you wanted to disable the key combination conditionally or always and your examples all involved code, I'll go the other route.Paint the window in question, hit F10 to get to the window's menu. Got to Advanced. Then got to "Key Disable". That will bring up the list of keys that can be used on the window. Highlight the key you want to disable and then hit Enter. Do this for as many of the keys you want. Remember to hit F9 (Save) before leaving. Also, remember to F9 (Save) the window before leaving it. This will disable the keys for the window always, unless you attach code to the window to enable the keys.On a couple of occassions, I've disabled keys on a window and then wrote code to enable it under the right conditions.I hope this helps.Michael Slack
At 13 DEC 2006 11:33AM Victor Engel wrote:
In 2.12 the available keys to disable are:
Options
Softkeys
Pan
Refresh
Save
Menu
Detail Help
Table
Relations
Resize
Move
Filter window
Browse edit
Changes edit
Browse forward
Browse backward
Print browse list
See all prompts
Delete record
Duplicate prompt
Middle field
Prompt tab forward
Prompt tab backward
Debug
Report window
None of these seems to correspond to the ALT-C function, which would be Duplicate Record.
At 13 DEC 2006 05:51PM Aiden Massey wrote:
Reckon I'm doomed.
Index(@priority.int,char(46),1) returns 0.
At 14 DEC 2006 04:51AM support@sprezzatura.com wrote:
This needs to be run after window common variables are loaded.
pre.code {
background-color: #E5E5E5;border: 1px solid #000000;width: 450px;padding: 5px;font-family: courier, verdana, arial, serif;margin: 0px 10px auto;}
SUBROUTINE REMOVE_ALT_C $INSERT INCLUDE, WINDOW_COMMON% WC_WEXIT_KEYS% = DELETE( WC_WEXIT_KEYS%, 37, 0, 0 )support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 14 DEC 2006 11:28AM Victor Engel wrote:
Not at all. First, you should be looking for char(0):char(46) not just char(46). Even so, you will likely not find anything. If you find something, you replace the existing code and command with something (or nulls). If you don't find anything, you add it.
Essentially, @priority.int works like this:
With every keystroke that is pressed, the system checks @priority.int to see if there is an entry. If there is, the corresponding code/command are executed. If not (normal for most keystrokes), flow proceeds normally.
At 14 DEC 2006 07:48PM Aiden Massey wrote:
I owe somebody a beer. Alt-C is field 43 in WC_WEXIT_KEYS% in my system.
This works if called from POST INIT
Subroutine Disable_AltC
$insert include, window_common%
altC=char(0):char(46)
Locate altC In wc_wexit_keys% Using @fm Setting pos Then
wc_wexit_keys%=Delete(wc_wexit_keys%,pos,0,0)
End
Return