home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
tegl_ii
/
intro
/
teglspec.doc
< prev
next >
Wrap
Text File
|
1991-08-16
|
4KB
|
158 lines
{-----------------------------------------------------------------------------}
{ TEGL Windows ToolKit II }
{ Copyright (C) 1990, 1991 TEGL Systems Corporation }
{ All Rights Reserved. }
{-----------------------------------------------------------------------------}
{$I switches.inc}
{$V-}
Unit TEGLSpec;
INTERFACE
USES
errorlog,
FastGrph, {xorbox}
Virtmem,
IPStacks,
TEGLIntr, {required for mouse_Xcoord}
TEGLUnit;
TYPE
slidermsptr = ^slidermsrec;
slidermsrec = Record
nxtms : slidermsptr;
ms : msclickptr;
end;
SliderPtr = ^SliderRec;
SliderRec = RECORD
fs : ImageStkPtr;
ms1 : MsClickPtr; {slider area}
ms2 : MsClickPtr; {slider button/thumb}
relatedms : slidermsptr; {related ms for searching}
minX,maxX : Word;
minY,maxY : Word;
slidecallproc : callproc;
pageA1callproc : callproc;
pageA2callproc : callproc;
END;
const
{..BACKDG
XXXXXXXX
XFXXXX0
XFXXX0
XF0FXX0
XX XFXX0 X
X XFXX0 XX
XFXX0F0
XFXXX0
XFXX0
XFXXX0
XXXXXXX
}
MaskBACKDG : Masktype =
(($00FF,$01FF,$03FF,$01FF,$20EF,$704F,$F80F,$FC0F,
$FE0F,$FC0F,$F80F,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF),
($0000,$7C00,$7800,$5C00,$0E00,$0700,$03A0,$01E0,
$00E0,$01E0,$0000,$0000,$0000,$0000,$0000,$0000));
{..FORWDG
XXXXXXXX
XFXXXX0
XFXXX0
XFXX0F0
X XFXX0 XX
XX XFXX0 X
XF0FXX0
XFXXX0
XFXX0
XFXXX0
XXXXXXX
}
MaskFORWDG : Masktype =
(($F00F,$F80F,$FC0F,$F80F,$704F,$20EF,$01FF,$03FF,
$07FF,$03FF,$01FF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF),
($0000,$03E0,$01E0,$03A0,$0700,$0E00,$5C00,$7800,
$7000,$7800,$0000,$0000,$0000,$0000,$0000,$0000));
{..VERTDG
XX
XFX0
XFXXX0
XFXXXXX0
XXXXFX0XXX
XFX0
XFX0
XFX0
XFX0
XFX0
XFX0
XXXXFX0XXX
XFXXXXX0
XFXXX0
XFX0
XX
}
MaskVERTDG : Masktype =
(($FE7F,$FC3F,$F81F,$F00F,$E007,$FC3F,$FC3F,$FC3F,
$FC3F,$FC3F,$FC3F,$E007,$F00F,$F81F,$FC3F,$FE7F),
($0000,$0180,$03C0,$07E0,$0180,$0180,$0180,$0180,
$0180,$0180,$0180,$0180,$07E0,$03C0,$0180,$0000));
{..HORZDG
X X
XX XX
XF0 XF0
XFX0XXXXXXXFX0
XFXXXXXXXXXXXXX0
XFXXXXXXXXXXXXX0
XFX0XXXXXXXFX0
XF0 XF0
XX XX
X X
}
MaskHORZDG : Masktype =
(($FFFF,$F7EF,$E7E7,$C7E3,$8001,$0000,$0000,$8001,
$C7E3,$E7E7,$F7EF,$FFFF,$FFFF,$FFFF,$FFFF,$FFFF),
($0000,$0000,$0000,$1008,$300C,$7FFE,$7FFE,$300C,
$1008,$0000,$0000,$0000,$0000,$0000,$0000,$0000));
Function SelectandResizeFrame(fs:ImageStkPtr; MouseClickPos: MsClickPtr) : Word;
Procedure DefineResizeMinMax(fs:ImageStkPtr; minx,miny,maxx,maxy:Word);
Procedure DefineResizeClickArea(fs:ImageStkPtr; x,y,x1,y1:Word; ResizeCallProc:callproc);
procedure MoveSliderBar(Slptr:sliderptr; x,y:word);
procedure SetSliderRelative(slptr:SliderPtr; XRange,XPos,YRange,YPos:longint);
procedure GetSliderRelative(slptr:SliderPtr; XRange:longint; var XPos:longint; YRange:longint; var YPos:longint);
Procedure DropSliders(frame : ImageStkPtr);
Function SliderAction(fs:ImageStkPtr; MouseClickPos: MsClickPtr) : Word;
Procedure AddSliderPageEvent(fs:ImageStkPtr; ms:msclickptr; SpageA1,SpageA2:callproc);
Procedure DefineSliderArea(fs:ImageStkPtr; x,y,x1,y1,minx,miny,maxx,maxy:Word; SlideCallProc:callproc);
Procedure SetSlidePosition(fs:ImageStkPtr; mxpos,mypos:Word);
Procedure AddRelatedSliderMS(fs:ImageStkPtr; sliderms,ms:msclickptr);
Function FindSliderFS(frame:ImageStkPtr; MouseClickPos:MsClickPtr) : SliderPtr;
Procedure disposeslider(frame:ImageStkPtr; dslptr : sliderptr);
function getlastsliderdef(fs:imagestkptr):sliderptr;
IMPLEMENTATION