|
Andy, I don't really know what I'm doing either, so this might not be best practice, but on the main Code/400 screen click on Options, then select Profiles, then User Preferences. This takes you to your Profile.lx file. I think this is run every time you start Code. You can override key assignments here, create menus etc. Mine looks like: /********************************************************************/ /* */ /* Everything below the end key defaults line is customised. */ /* */ /* Last changed 16Mar99 */ /* */ /********************************************************************/ /* editor key defaults - DO NOT REMOVE! */ 'MACRO seu' /* end key defaults - DO NOT REMOVE! */ 'SET GLOBAL.KEYS EPM' 'SET Actionbar.~Robs.&Subroutine MACRO Subr' 'SET Actionbar.~Robs.&Cl_Header MACRO ClHead' 'SET Actionbar.~Robs.&RPGLE_Header MACRO RPGLEHEAD' 'SET Actionbar.~Robs.&DDS_Header MACRO DDSHeadr' 'SET Actionbar.~Robs.&Signature MACRO signatur enable' 'set actionbar.~Robs.Separator ;' 'SET Actionbar.~Robs.&X-Ref JAVA RPGXReference' 'SET Actionbar.~Robs.&Indicators JAVA RPGIndicators' 'set actionbar.LP_FILE.Separator ;' 'set actionbar.LP_FILE.Quit MACRO MYQUIT' /* Not on hi-res screen */ /* 'WINDOW MAXIMISE' */ 'set action.c-right next word' 'set action.c-left prev word' 'set action.s-enter macro myent' 'set action.c-enter macro cmyent' 'set action.a-b lp_markrect' 'set action.c-e primitive truncate' 'set action.a-r record inverse' 'set action.a-t macro sigit' 'set action.a-p record play' 'set action.c-c centreh' 'set action.c-t macro focustop' 'set action.c-l lp_line' 'set accelerator.lp_overlay a-o' 'set action.c-m macro match' /* 'macro lpexlets on' */ 'set action.a-z macro copyline' 'set action.a-1 switcher Session A' 'set action.a-2 switcher Session B' 'set action.a-3 switcher Session C' 'set action.a-4 switcher Session D' 'set action.a-5 switcher Session E' 'set action.a-6 switcher Session F' 'set action.a-7 switcher Session G' 'set action.c-s-1 mark set mark1' 'set action.c-s-2 mark set mark2' 'set action.c-s-3 mark set mark3' 'set action.c-s-4 mark set mark4' 'set action.c-1 mark find mark1' 'set action.c-2 mark find mark2' 'set action.c-3 mark find mark3' 'set action.c-4 mark find mark4' 'set action.a-q macro tagdel' 'set action.c-f MACRO FIND' 'set action.c-n MACRO FINDNEXT' /* Don't want theirs - use s-Enter for special treatment */ 'macro rpgent OFF' 'MACRO HIGHLTLN INIT' /* 'MACRO code fields on' Language-sensitive editing */ /* Load extra characters to be recognised by Alt+Arrow keys */ 'extract wordchars into a' 'set wordchars 'a'%*#@$_' /* Force auto-inctement */ 'SET GLOBAL.RESEQOPT_AUTO 1' 'SET GLOBAL.RESEQOPT_INCR 100' 'SET GLOBAL.RESEQOPT_START 100' A lot of the additions have come from this forum. There's examples of macros (anything with the extension LX) in the MACROS directory off the main WDT directory, and the help is pretty good. If you want a blow-by-blow description of what each line does, let me know. There are language-specific equivalents to profile.lx as well, if you only want changes to apply when you're editing RPG source for example. Violaine Batthish has a book on Code/400 that may be helpful (I haven't seen it). Cheers Robin
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.