|
报表高亮显示例子
- Public Sub HighlightControl(ByRef ctlControl As Control, _
- ByVal lngColour As Long, _
- ByVal sngAspect As Single)
-
- With ctlControl
-
- .BorderStyle = 0
-
- .Parent.Circle (.Left + .Width / 2, _
- .Top + .Height / 2), _
- .Width / 2 + 20, _
- lngColour, , , _
- sngAspect
- End With
- End Sub
- Public Sub LineLightControl(ByRef ctlControl As Control, _
- ByVal lngColour As Long)
-
- With ctlControl
-
- .BorderStyle = 0
-
- .Parent.Line (.Left, .Top + .Height / 2 - 20)-(.Left + .Width, .Top + .Height / 2 - 20), lngColour
- .Parent.Line (.Left, .Top + .Height / 2 + 20)-(.Left + .Width, .Top + .Height / 2 + 20), lngColour
- End With
- End Sub
- Private Sub 主体_Format(Cancel As Integer, FormatCount As Integer)
- If Me.数量 > 40 Then
-
- HighlightControl Me.数量, vbRed, 0.35
-
- End If
-
- If Me.折扣 > 0.1 Then
- LineLightControl Me.折扣, vbBlue
- End If
- End Sub
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|