vb 滚动条选择性改变字体和背景颜色
展开全部
Private Sub HScroll1_Change()
If Option_B.Value = True Then
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
Else
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End If
End Sub
Private Sub HScroll2_Change()
If Option_B.Value = True Then
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
Else
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End If
End Sub
Private Sub HScroll3_Change()
If Option_B.Value = True Then
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
Else
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End If
End Sub
Private Sub Option_B_Click()
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub
Private Sub Option_F_Click()
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub
If Option_B.Value = True Then
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
Else
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End If
End Sub
Private Sub HScroll2_Change()
If Option_B.Value = True Then
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
Else
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End If
End Sub
Private Sub HScroll3_Change()
If Option_B.Value = True Then
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
Else
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End If
End Sub
Private Sub Option_B_Click()
Text1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub
Private Sub Option_F_Click()
Text1.ForeColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询