p; line(x-1,y-1,x-1,y+high+1);
line(x-2,y-2,x-2,y+high+2); }
setcolor(DARKGRAY);
line(x+lenth,y,x+lenth,y+high);
if(butttype==3){
line(x+lenth+1,y-1,x+lenth+1,y+high+1);
line(x+lenth+2,y-2,x+lenth+2,y+high+2); }
line(x,y+high,x+lenth,y+high);
if(butttype==3){
line(x-1,y+high+1,x+lenth+1,y+high+1);
line(x-2,y+high+2,x+lenth+2,y+high+2); }
}
/*
压入按钮=void pushbutt(int x,int y,int lenth,int high,int color,int butttype)
入口参数:x,y =按钮左上脚坐标
lenth,high=按钮长度和高度
color =按钮颜色
buttype =按钮类型 { =任意值时为一条线
=3 为三条线
}
出口参数:无
*/
void pushbutt(int x,int y,int lenth,int high,int color,int butttype)/* push button */
{
setcolor(color);
setfillstyle(1,color);
bar(x,y,x+lenth,y+high);
setcolor(DARKGRAY);
line(x,y,x+lenth,y);
if(butttype==3){
line(x-1,y-1,x+lenth+1,y-1);
line(x-2,y-2,x+lenth+2,y-2); }
line(x,y,x,y+high);
if(butttype==3){
line(x-1,y-1,x-1,y+high+1);
line(x-2,y-2,x-2,y+high+2); }
setcolor(WH99vE);
line(x+lenth,y,x+lenth,y+high);
if(butttype==3){
line(x+lenth+1,y-1,x+lenth+1,y+high+1);
line(x+lenth+2,y-2,x+lenth+2,y+high+2); }
line(x,y+high,x+lenth,y+high);
if(butttype==3){
line(x-1,y+high+1,x+lenth+1,y+high+1);
line(x-2,y+high+2,x+lenth+2,y+high+2); }
}
/*
状态栏 蛌oid stbar(int x,int y,int lenth,int high,int color,int stype)
入口参数:x,y =状态栏左上脚坐标
lenth,high =状态栏长度和高度
color =状态栏颜色
stype =状态栏类型 { =任意值为普通条
=1 为加框条
}
出口参数:无
*/
void stbar(int x,int y,int lenth,int high,int color,int stype) /* status bar */
{
setfillstyle(1,color);
setcolor(color);
bar(x,y,x+lenth,y+high);
if(stype==1){
setcolor(WH99vE);
rectangle(x,y,x+lenth,y+high);
rectangle(x+1,y+1,x+lenth-1,y+high-1);
setcolor(DARKGRAY);
rectangle(x,y,x+lenth,y+high);}
}
/*
菜单条 蛌oid menubar(int x,int y,int lenth,int high,int color,int butnum)
入口参数:x,y =菜单条左上脚坐标
lenth,high =菜单条长度和高度
color =菜单条颜色
butnum =菜单条类型 { =任意值为三钮(有最大化,最小化和关闭钮)
=1 只有关闭钮
}
出口参数:无
*/
void menubar(int x,int y,int lenth,int high,int color,int butnum) /* menu bar */
{
setfillstyle(1,color);
setcolor(color);
bar(x,y,x+lenth,y+high);
if(butnum==1) closebar(x+lenth-14,y+3,LIGHTGRAY);
上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
如果您有什么疑问,可以至论坛提出或者解答他人的疑问 返回页面顶部