home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
kl.zip
/
KLMouse.kex
< prev
next >
Wrap
Text File
|
1997-03-17
|
903b
|
30 lines
* KEDIT Macro: KL Mouse for KL macro Version. 1.0
*
* Author: Shintaroh Hori (Yamato Lab, IBM Japan)
*
'editv getf KLIND KLSPEC.0'
if klind \=1 then Return 0 /* do nothing for non-KL file */
parse arg klcmd
'extract /click' ; if rc\=0 then Return 1+rc
if click.2 <= klspec.0 then /* On a File Specifier line */ do
if click.1=1 then 'KEDIT -'; else 'KEDIT'
rc=1 /* Normal completion */
end
else if click.2 = klspec.0 +1 then /* On a field Description line */ do
pos = click.3
'editv getf klflds'
do while klflds\=''
parse var klflds fld fb fe klflds
if pos < fb then iterate
if pos > fe then iterate
if click.1=1 then so='-'; else so=''
'macro KL /S'so || fld /* Sort */
leave
end
end
else if klcmd \='' then do
'macro KL /EX' klcmd /* Execute a given KL command for a file */
end
Exit rc