home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progpas
/
tegl6b.arj
/
INTROPAK.EXE
/
lha
/
TWDIALOG.DOC
< prev
next >
Wrap
Text File
|
1991-08-16
|
3KB
|
95 lines
{-----------------------------------------------------------------------------}
{ TEGL Windows ToolKit II }
{ Copyright (C) 1990, 1991 TEGL Systems Corporation }
{ All Rights Reserved. }
{-----------------------------------------------------------------------------}
UNIT twDialog;
{$I Switches.inc}
INTERFACE
USES
crt,
errorlog,
FastGrph,
virtmem,
{$IFDEF NoGr}
TGraph,
{$ELSE}
Graph,
{$ENDIF}
teglintr,
TeglUnit,
TeglMain,
tegledit,
twcommon,
twkernel;
CONST
twdConDisplay = 0; {-- format the string for display }
twdConEntry = 1; {-- format the string just before entering or editing}
twdConDelete = 2; {-- clear the entry }
twdConReturn = 3; {-- convert the string back to orginal type }
{-- This is the type definition of the conversion routine that must be}
{-- coded for each user defined Dialogue entry.}
{-- The node pointer is passed along for advanced error recovery }
TYPE
twdConvert = procedure (VAR s : String; {-- the working string }
p : Pointer; {-- points to var of your type }
Mode : Integer; {-- the conversion mode }
Width : Byte; {-- the field width }
Decimals: byte; {-- places, for floats }
Node : twDialogPtr); {-- the Dialogue item }
Function twdRegisterUserType(ConvertProc: twdConvert; CharProc: AcceptCh): Integer;
Function twdClose(ifs: ImageStkPtr; ms: MsClickPtr): Word;
Procedure twdInit(VAR wf : WinFramePtr; x1_, y1_, x2_, y2_ : Word);
Procedure twdAddDialogItem(wf : WinFramePtr; tdtype : integer;
x, y : Integer;
mess : string;
dp : pointer;
len : byte;
places: byte;
event: CallProc);
Procedure twdAddLabel(wf : WinFramePtr;
x, y : Integer;
Mess : string);
Procedure twdAddButton(wf : WinFramePtr;
x, y : Integer;
Mess : string;
event: CallProc);
Procedure twdAddCheckBox(wf : WinFramePtr;
x, y : Integer;
Mess : string;
VAR b: Boolean);
Procedure twdAddRadioButton(wf : WinFramePtr;
x, y : Integer;
Mess : string;
VAR i : Integer);
Procedure twdAddIconButton(wf : WinFramePtr;
x, y : Integer;
icon : pointer;
event: CallProc);
Procedure twdAddInputLine(wf : WinFramePtr;
x,y : Integer;
Mess: String;
VAR utype: String;
len: Byte);
Procedure twdNewCluster(wf: WinFrameptr);
function twdFindDialog(wf: WinFramePtr; num: Integer): twDialogPtr;
Procedure twdSetDialogActivity(wf: WinFramePtr; num: Integer; Active: Boolean);
Function twdRedraw(ifs : ImageStkPtr; ms : MsClickPtr): Word;
IMPLEMENTATION