home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 April
/
PCWorld_2000-04_cd.bin
/
Software
/
TemaCD
/
winedit
/
cpopup.mn_
< prev
next >
Wrap
Text File
|
1999-10-05
|
2KB
|
79 lines
; CPOPUP.MNU file.
;
; This is the WIL menu version of WinEdit's context menu.
;
; You can designate a different popup menu for each defined
; file type. This menu script is used by default if no other
; file-specific menu is designated in the View.Options.FileType
; dialog box.
;
; AutoExec Section is on top here.
;
TAB=@TAB
CR=@CRLF
EOL=@CR
Home=DirHome()
IntControl(29,@tab,0,0,0) ;Standardize on tabs as delimiters for FileItemize, etc
Compile
wCompile()
_Undo ; Undoes the last editing action
wUndo()
;Redo ; Redoes the last editing action
; wRedo()
_Cut ; Cut the selection and put it on the clipboard
wCut()
Copy ; Copy the selection and put it on the clipboard
wCopy()
Paste ; Insert the clipboard contents
wPaste()
_Properties
wProperties()
_File
New \ ^N
wFileNew()
Open highlighted file \ ^F ; Open selected file
name = wEdGetWord()
length = strlen(name)
if length==0 then goto DONE
b = FileLocate(name)
if b == "" then Message("Open selected file","Cannot find %name%")
if b == "" then goto DONE
wFileOpen(b)
:DONE
drop(name,length,b)
Open \ ^O
wFileOpen()
Close \ ^{F4}
wWinClose()
Print \ ^P
wPrintDirect()
_FTP Open
wFtpOpen()
FTP Save
wFtpSave()
_How do I?... ; Learn about using scripts
Customize Menus ; Menu file reference
helpfile = strcat(DirHome(),"Help\Windows Interface Language.hlp")
WinHelp(helpFile, "PartialKey", "Menu Files")
Write Macro Scripts ; WIL scripting language reference
helpfile = strcat(home,"Help\Windows Interface Language.hlp")
WinHelp(helpFile, "PartialKey", "Tutorial")
Customize this menu... ; Manage WinEdit Popup menu
TheFile=strcat(DirHome(),"System\CPopup.mnu")
WFileOpen(TheFile)
Drop(TheFile)