home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
CONTRIB.ZIP
/
DIALOG.MIN
< prev
next >
Wrap
Text File
|
1990-03-09
|
2KB
|
102 lines
Instead of using the bottom line of the screen for the minibuffer, use
a pop-up box. Too slow to be practical.
Name:Bfilename
[*]box[*]
#(B:input)
Name:Freadline
Read a line of text from the minibuffer.
On entry, #(value) is the default string.
arg1=prompt
arg2=string to execute if input is confirmed with return. The users input
is in #(value)
arg3=mode.
The mode variable lets keys be redefined in readline mode. For example,
isearch defines ^S and ^R specially, and extended-command defines space and
escape specially.
[*]#(ds,2nd-half)
#(sv,fc,2)
#(Bbox,##(B-readline-x),##(B-readline-y),
#(++,#(++,##(B-readline-x),##(B-readline-len)),2),
#(++,##(B-readline-y),2)
)
#(sv,fc,3)
#(xy,#(++,##(B-readline-x),1),#(++,##(B-readline-y),1))
#(ow,arg1)
#(Freadline-an,(arg1))
#(SELF-do,#(g),(arg1),(arg2),
#(==,arg3,,Freadline.,arg3),##(F-delete-or-append))
#(es,2nd-half)[*]
Name:Freadline-an
[*]#(xy,#(++,##(B-readline-x),##(nc, arg1)),#(++,##(B-readline-y),1))
#(sv,fc,4)
#(ow,#(Fpad-with,,(##(value)##(2nd-half)), ,##(B-readline-len)))
#(xy,#(++,##(B-readline-x),##(nc, arg1##(value))),#(++,##(B-readline-y),1))
#(sv,fc,#(F-fore-color))
[*]
Name:B:input
[*]#(Binput,10,12,Enter your name,40)[*]
Name:B-readline-x
[*]5[*]
Name:B-readline-y
[*]12[*]
Name:B-readline-len
[*]70[*]
Name:Bbox
arg1 = left
arg2 = top
arg3 = right
arg4 = bottom
arg5 = title
Test: #(Bbox,10,10,20,20,Foo)##(it,10000)
[*]#(xy,arg1,arg2)
#(ow,
##(bc,218,d,a)
#(Fpad-with,,
#(Fpad-with,##(bc,196,d,a),arg5,,
##(//,##(++,##(--,arg3,arg1),##(++,-1,##(nc,arg5))),2)),
##(bc,196,d,a),
##(--,##(--,arg3,arg1),1)
)
##(bc,191,d,a)
)
#(Bbox-do,arg1,#(++,arg2,1),arg3,#(--,arg4,1),179,32,179)
#(Bbox-do,arg1,arg4,arg3,arg4,192,196,217)
[*]
Name:Bbox-do
arg1 = left
arg2 = top
arg3 = right
arg4 = bottom
arg5 = left edge character value
arg6 = middle character value
arg7 = right edge character value
[*]#(==,arg5,,,(
#(ds,temp,##(bc,arg5,d,a)#(Floop,##(bc,arg6,d,a),##(--,##(--,arg3,arg1),1))##(bc,arg7,d,a))
))
#(g?,arg2,arg4,,(
#(xy,arg1,arg2)
#(ow,##(gn,temp,32767))
#(rs,temp)
#(SELF,arg1,##(++,arg2,1),arg3,arg4)
))
[*]