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

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

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

Public Property Get Spaced() As Long
    Spaced = m_Spaced
End Property
Public Property Let Spaced(ByVal Value As Long)
    m_Spaced = Value
    Call AddValue
    PropertyChanged "Spaced"
End Property
’值刻度
Public Property Get ValueScale() As Long
    ValueScale = m_ValueScale
End Property
Public Property Let ValueScale(ByVal Value As Long)
    m_ValueScale = Value
    Call AddValue
    PropertyChanged "ValueScale"
End Property
’时间刻度
Public Property Get TimeScale() As Long
    TimeScale = m_TimeScale
End Property
Public Property Let TimeScale(ByVal Value As Long)
    m_TimeScale = Value
    PropertyChanged "TimeScale"
End Property
’最大比例
Public Property Get MaxValue() As Single
    MaxValue = m_MaxValue
End Property
Public Property Let MaxValue(ByVal Value As Single)
    m_MaxValue = Value
    Call AddValue
    PropertyChanged "MaxValue"
End Property ’曲线个数
Public Property Get GraphCount() As Long
    On Error Resume Next
    GraphCount = UBound(m_Coll) + 1
End Property
Private Sub UserControl_Resize()
    Call AddValue
End Sub
Private Sub UserControl_Show()
    Call AddValue
End Sub
Private Sub UserControl_Initialize()
    UserControl.ScaleMode = 3
    Set m_Time = New Collection
End Sub
Private Sub UserControl_Terminate()
    Dim i As Long
    For i = 0 To GraphCount - 1
        Set m_Coll(i) = Nothing
    Next
    Set m_Time = Nothing
End Sub
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
    m_ShowGraph = PropBag.ReadProperty("ShowGraph", True)
    m_ShowGrid = PropBag.ReadProperty("ShowGrid", True)
    m_ShowValueScale = PropBag.ReadProperty("ShowValueScale", True)
    m_ShowTimeScale = PropBag.ReadProperty("ShowTimeScale", True)
    
    UserControl.BackColor = PropBag.ReadProperty("BackColor", &H0&)
    m_ScaleColor = PropBag.ReadProperty("ScaleColor", &HC0C0C0)
    m_GridColor = PropBag.ReadProperty("GridColor", vbGreen)
    m_CellWidth = PropBag.ReadProperty("CellWidth", 12)
    m_CellHeight = PropBag.ReadProperty("CellHeight", 12)
    m_Spaced = PropBag.ReadProperty("Spaced", 5)
    m_ValueScale = PropBag.ReadProperty("ValueScale", 25)
    m_TimeScale = PropBag.ReadProperty("TimeScale", 2)
    m_MaxValue = PropBag.ReadProperty("MaxValue", 100)
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
    Call PropBag.WriteProperty("ShowGraph", m_ShowGraph, True)  Call PropBag.WriteProperty("ShowGrid", m_ShowGrid, True)
    Call PropBag.WriteProperty("ShowValueScale", m_ShowValueScale, True)
    Call PropBag.WriteProperty("ShowTimeScale", m_ShowTimeScale, True)
    
    Call PropBag.WriteProperty("BackColor", UserControl.BackColor, &H0&)
    Call PropBag.WriteProperty("ScaleColor", m_ScaleColor, &HFFFFFF)
    Call PropBag.WriteProperty("GridColor", m_GridColor, vbGreen)
    Call PropBag.WriteProperty("CellWidth", m_CellWidth, 12)
    Call PropBag.WriteProperty("CellHeight", m_CellHeight, 12)
    Call PropBag.WriteProperty("Spaced", m_Spaced, 5)
    Call PropBag.WriteProperty("ValueScale", m_ValueScale, 25)
    Call PropBag.WriteProperty("TimeScale", m_TimeScale, 2)
    Call PropBag.WriteProperty("MaxValue", m_MaxValue, 100)
End Sub

[1] [2] [3] [4]
2007-07-31 10:30:00    出处:
Google
热点文章/相关文章

音乐
嫁衣 画心 放生 天亮了 牡丹江 那滋味 擦肩而过 怀念过去 北京欢迎你 突然好想你 吻的太逼真 说好的幸福呢 坐上火车去拉萨 没有人比我更爱你
愚爱 心碎 稻香 带我走 醉赤壁 魔杰座 我还想她 明天过后 一定要爱你 等爱的玫瑰 原谅我一次 越单纯越幸福 最后一次的温柔 给我一首歌的时间
白狐 光荣 降临 下雨天 小酒窝 樱花草 恋爱新手 说唱脸谱 红色高跟鞋 寂寞才说爱 深深爱过你 爱上你是个错 即使知道要见面 不是因为寂寞才想你
城府 假如 花海 兰亭序 棉花糖 舍不得 最后一次 女人如烟 外滩十八号 我们的纪念 我们的无奈 心在跳情在烧 爱上你是我的错 爱情里没有谁对谁错
网站地图 | 关于我们 | 联系我们 | 网站建设 | 广告服务 | 版权声明 | 免责声明 | 网站公告 | 友情链接 | 留言 | 旧版入口