如何在PB中制作特殊形状数据窗口或按钮[33]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 emag_pb 的 blog

li_height = unitstopixels(parent.height, yunitstopixels!)

 

lws_pointapi[1].xpos = li_xpos

lws_pointapi[1].ypos = li_ypos + li_height / 2

 

lws_pointapi[2].xpos = li_xpos + li_width / 2

lws_pointapi[2].ypos = li_ypos

 

lws_pointapi[3].xpos = li_xpos + li_width

lws_pointapi[3].ypos = li_ypos + li_height / 2

 

lws_pointapi[4].xpos = li_xpos + li_width / 2

lws_pointapi[4].ypos = li_ypos + li_height

 

 

ll_handle = createpolygonrgn(lws_pointapi[], 4, 1)

 

//其中第 1 个参数为多边形各个顶点坐标值的数组

//其中第 2 个参数为多边形边数,可修改,配合数组值

//其中第 3 个参数为填充模式 alternate /winding

 

setwindowrgn(handle(parent), ll_handle, true)

 

return 1

end event

 

type cb_2 from commandbutton within w_button

本文关键:如何在PB中制作特殊形状数据窗口或按钮
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top