home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Multimed
/
Multimed.zip
/
lbmix04.zip
/
Source
/
dlgpatch.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-05-07
|
791b
|
28 lines
/* Patch the dialog include file for LBMix */
in="Dialogs.dlg"
out="Dialogs-patched.dlg"
if stream(in,'c','query exists')='' then do
say 'File' in 'not found.'
exit
end
if stream(out,'c','query exists')<>'' then '@del' out
do while chars(in)<>0
Next=linein(in)
if word(Next,1)='DLGINCLUDE' then do
Next=left(Next,wordindex(Next,3)-2) '"LBMixRes.h"'
end
else if word(Next,1)='NOTEBOOK' then do
i=length(Next)-pos(',',reverse(Next))+1
Next=left(Next,i) 'BKS_TABBEDDIALOG | WS_GROUP'
call lineout out,Next
do until (left(word(Next,1),4)<>'BKS_')&(left(word(Next,1),3)<>'WS_')
Next=linein(in)
end
end
call lineout out,Next
end
call stream in,'c','close'
call stream out,'c','close'