Windows API Calls for Powerbuilder 5.0

¹®Á¦

Pie( )

ÇØ°á

This function draws a pie chart based on the coordinates the function receives. There are no Powerbuilder equivalents.

Global External Function:
FUNCTION boolean Pie(ulong hwnd,long x1,long y1,long x2,long y2,long x3,long y3,long x4, &
                                 long y4) LIBRARY "Gdi32.dll"

Script:
Boolean rtn
ulong l_handle,l_device
long lv[8]
lv[ ] = {10,50,290,220,0,0,80,0}
l_handle = handle(w_main)
l_device = GetDC(l_handle)
rtn = Pie(l_device,lv[1],lv[2],lv[3],lv[4],lv[5],lv[6],lv[7],lv[8])

 

ÂüÁ¶