home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
TESTPIE.PRG
< prev
next >
Wrap
Text File
|
1994-06-11
|
2KB
|
50 lines
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oWnd, oSbr1, oSbr2, oSbr3, oSbr4
local nStartRow := 0, nStartCol := 0
local nEndRow := 0, nEndCol := 0
DEFINE WINDOW oWnd TITLE "Testing Pie function parameters" COLOR "W+/G"
@ 1, 20 SAY " 1 " COLOR "GR+/B"
@ 1, 25 SAY " 2 " COLOR "GR+/B"
@ 1, 30 SAY " 3 " COLOR "GR+/B"
@ 1, 35 SAY " 4 " COLOR "GR+/B"
@ 1, 50 SAY "1.- nStartRow"
@ 2, 50 SAY "2.- nStartCol"
@ 3, 50 SAY "3.- nEndRow "
@ 4, 50 SAY "4.- nEndCol "
@ 3, 20 SCROLLBAR oSbr1 OF oWnd VERTICAL RANGE 1, 100 ;
ON UP ( nStartRow--, oWnd:Refresh() ) ;
ON DOWN ( nStartRow++, oWnd:Refresh() ) ;
ON THUMBPOS ( nStartRow := nPos, oSbr1:SetPos( nPos ), oWnd:Refresh() )
@ 3, 25 SCROLLBAR oSbr2 OF oWnd VERTICAL RANGE 1, 100 ;
ON UP ( nStartCol--, oWnd:Refresh() ) ;
ON DOWN ( nStartCol++, oWnd:Refresh() ) ;
ON THUMBPOS ( nStartCol := nPos, oSbr2:SetPos( nPos ), oWnd:Refresh() )
@ 3, 30 SCROLLBAR oSbr3 OF oWnd VERTICAL RANGE 1, 100 ;
ON UP ( nEndRow--, oWnd:Refresh() ) ;
ON DOWN ( nEndRow++, oWnd:Refresh() ) ;
ON THUMBPOS ( nEndRow := nPos, oSbr3:SetPos( nPos ), oWnd:Refresh() )
@ 3, 35 SCROLLBAR oSbr4 OF oWnd VERTICAL RANGE 1, 100 ;
ON UP ( nEndCol--, oWnd:Refresh() ) ;
ON DOWN ( nEndCol++, oWnd:Refresh() ) ;
ON THUMBPOS ( nEndCol := nPos, oSbr4:SetPos( nPos ), oWnd:Refresh() )
ACTIVATE WINDOW oWnd ;
ON PAINT Pie( oWnd:hDC, 10, 10, 100, 100,;
nStartRow, nStartCol, nEndRow, nEndCol )
return nil
//----------------------------------------------------------------------------//