ddc
联网
平面设计 画册 VI欣赏 包装 CG-插画 搜索 个人网页 Alexa排名 CSS 建站资源 下载专区 JS特效 品牌服装 服装院校 专题欣赏 SEO 图标欣赏 专题
网站建设 域名注册 网站建设 虚拟主机 广州网站设计 域名注册 广州网站建设 上海网站建设 虚拟主机 广州网页设计 虚拟主机 域名注册 acg王国 ACG玩家 品牌设计 上海网站建设
求创科技
网站建设
中国互联
素材出售
中国设计秀
中资源
当前位置:网络学院首页 >> 编程开发 >> .net >> VB.NET写的支持多曲线的历史曲线控件源码

VB.NET写的支持多曲线的历史曲线控件源码 (1)

来源:中国设计秀    作者:    点击:736     加入收藏    发表评论
0
顶一下

   早就想亲自DIY一个类似Windwos任务管理器中的CPU和内存的曲线图,因时间关系直到现在才如愿以偿。虽然做的粗糙点,但勉强说的过去。
    功能:可以设置是否显示值刻度、网格、曲线、时间刻度等,可以定义背景颜色、网格颜色、刻度颜色、曲线颜色等,可以设置网格大小、刻度间隔、曲线进展长度,最重要的是可以支持多曲线运行。
名称:Graph
VERSION 5.00
Begin VB.UserControl Graph 
   AutoRedraw      =   -1  ’True
   BackColor       =   &H00000000&
   ClientHeight    =   1605
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   2880
   ForeColor       =   &H8000000B&
   HitBehavior     =   0  ’无
   ScaleHeight     =   1605
   ScaleWidth      =   2880
End
Attribute VB_Name = "Graph"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Private m_Coll() As Collection
Private m_Color() As OLE_COLOR
Private m_Time As Collection
Private m_MaxValue As Single
Private m_ScaleColor As OLE_COLOR
Private m_GridColor As OLE_COLOR
Private m_CellWidth As Single
Private m_CellHeight As Single
Private m_Spaced As Single
Private m_ValueScale As Single
Private m_TimeScale As Long
Private m_ShowGraph As Boolean
Private m_ShowGrid As Boolean
Private m_ShowValueScale As Boolean
Private m_ShowTimeScale As Boolean

’背景颜色
Public Property Get BackColor() As OLE_COLOR
    BackColor = UserControl.BackColor
End Property
Public Property Let BackColor(ByVal Value As OLE_COLOR)
    UserControl.BackColor = Value
    Call AddValue    早就想亲自DIY一个类似Windwos任务管理器中的CPU和内存的曲线图,因时间关系直到现在才如愿以偿。虽然做的粗糙点,但勉强说的过去。
    功能:可以设置是否显示值刻度、网格、曲线、时间刻度等,可以定义背景颜色、网格颜色、刻度颜色、曲线颜色等,可以设置网格大小、刻度间隔、曲线进展长度,最重要的是可以支持多曲线运行。
名称:Graph
VERSION 5.00
Begin VB.UserControl Graph 
   AutoRedraw      =   -1  ’True
   BackColor       =   &H00000000&
   ClientHeight    =   1605
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   2880
   ForeColor       =   &H8000000B&
   HitBehavior     =   0  ’无
   ScaleHeight     =   1605
   ScaleWidth      =   2880
End
Attribute VB_Name = "Graph"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Private m_Coll() As Collection
Private m_Color() As OLE_COLOR
Private m_Time As Collection
Private m_MaxValue As Single
Private m_ScaleColor As OLE_COLOR
Private m_GridColor As OLE_COLOR
Private m_CellWidth As Single
Private m_CellHeight As Single
Private m_Spaced As Single
Private m_ValueScale As Single
Private m_TimeScale As Long
Private m_ShowGraph As Boolean
Private m_ShowGrid As Boolean
Private m_ShowValueScale As Boolean
Private m_ShowTimeScale As Boolean


End Property
Public Property Let BackColor(ByVal Value As OLE_COLOR)
    UserControl.BackColor = Value
    Call AddValue
   Call AddValue
    PropertyChanged "ShowTimeScale"
End Property
’单格宽度
Public Property Get CellWidth() As Single
    CellWidth = m_CellWidth
End Property
Public Property Let CellWidth(ByVal Value As Single)
    m_CellWidth = Value
    Call AddValue
    PropertyChanged "CellWidth"
End Property
’单格宽度
Public Property Get CellHeight() As Single
    CellHeight = m_CellHeight
End Property
Public Property Let CellHeight(ByVal Value As Single)
    m_CellHeight = Value
    Call AddValue
    PropertyChanged "CellHeight"
End Property
’值间隔

[1] [2] [3] [4]
2007-07-31 10:30:00    出处:
Google
网站地图 | 关于我们 | 联系我们 | 网站建设 | 广告服务 | 版权声明 | 免责声明 | 网站公告 | 友情链接 | 留言 | 旧版入口