home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progpas
/
tegl6b.arj
/
INTROPAK.EXE
/
lha
/
TEGLEDIT.DOC
< prev
next >
Wrap
Text File
|
1991-08-16
|
2KB
|
43 lines
{-----------------------------------------------------------------------------}
{ TEGL Windows ToolKit II }
{ Copyright (C) 1990, 1991 TEGL Systems Corporation }
{ All Rights Reserved. }
{-----------------------------------------------------------------------------}
{$I switches.inc}
Unit tegledit;
INTERFACE
uses crt, {keypress}
errorlog, {error messages}
virtmem, {heap for local data}
ipstacks, {image partial for edit string background}
teglmain, {wait for user release}
teglintr, {text cursor routines}
teglunit, {define mouse click area}
fastgrph; {outtgtextxy}
type
acceptch = function(ch:char):boolean;
formatstr = function(var txtstr:string):boolean;
procedure DefineStrEditEvent(fs:imagestkptr; x,y,x1,y1,maxlen,color:word;
font:pointer; prop:boolean; var txtstr:string;
userch:acceptch; formenter,formexit:formatstr; formevent:callproc);
procedure SetStrEdit(fs:ImageStkPtr; ms: MsClickPtr; ncpos:word);
Procedure DropStrEditEvents(fs:imagestkptr);
function AllChars(ch:char):boolean;
function AlphaOnly(ch:char):boolean;
function NumbersOnly(ch:char):boolean;
function AlphaNumeric(ch:char):boolean;
function StrNoformat(var txtstr:string):boolean;
function StrRedisplay(var txtstr:string):boolean;
IMPLEMENTATION