求助:VFP设计题,大神帮忙解决一下
请根据下面表单界面设计一个调色板,并编写相应代码,实现选择颜色功能。(注意标注上什么控件主要属性、什么事件及其代码)
要求选中一种颜色,则选项按钮组的背景色即为该色。
2022-07-19 17:01
2022-07-19 17:19
2022-07-20 01:46
2022-07-20 08:42
2022-07-20 08:43
程序代码:DO CASE
CASE this.Value=1
this.BackColor=RGB(255,0,0)
CASE this.Value=2
this.BackColor=RGB(255,255,0)
CASE this.Value=3
this.BackColor=RGB(0,0,255)
CASE this.Value=4
this.BackColor=RGB(0,255,0)
CASE this.Value=5
this.BackColor=RGB(0,0,0)
ENDCASE
thisform.shape1.BackColor=this.BackColor
BKC=this.BackColor
thisform.text7.Value=MOD(BKC,256)
thisform.text8.Value=INT(MOD(BKC,256*256)/256)
thisform.text9.Value=INT(BKC/256/256)
2022-07-20 21:39