VFP使用 Listbox

PROCEDURE prdForm_Cmg
	.Top=fncT(125)
	.Left=fncL(007)
	.Width=.Parent.Width-fncW(015)
	.Height=.Parent.Height-.Top-fncH(010)
	.BackColor=.Parent.BackColor
	.BorderStyle=0
	.ButtonCount=64
	.SetAll([Height],.Height*4/.ButtonCount)
	.SetAll([Caption],SPACE(0))
	.SetAll([FontName],[Arial])
	.SetAll([SpecialEffect],2)
	FOR m.nBx=1 TO .ButtonCount
		WITH .Buttons[m.nBx]
			.Top=INT((m.nBx-1)/4)*.Height+fncT(2.5)
			.Left=ICASE(m.nBx%4=1,fncL(2.5),m.nBx%4=2,fncL(47.5),m.nBx%4=3,fncL(72.5),fncL(97.5))
			.Width=ICASE(m.nBx%4=1,fncW(045),m.nBx%4=0,fncW(035),fncW(025))
			.Alignment=IIF(m.nBx%4=1 OR m.nBx<5,2,1)
			.ForeColor=ICASE(m.nBx<5,125,m.nBx%4!=1,16711935,0)
			.FontBold=IIF(m.nBx<5,.T.,.F.)
			.FontSize=IIF(m.nBx<5,12,9)
		ENDWITH
	NEXT
	.Buttons[1].Caption=fncTran([Reminding])
	.Buttons[2].Caption=fncTran([Expired])
	.Buttons[3].Caption=fncTran([Forecast])
	.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值