亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mybutton.ctl

?? 用Delphi寫的網(wǎng)絡(luò)聊天工具
?? CTL
?? 第 1 頁 / 共 4 頁
字號(hào):
    m_TextAlign = m_def_TextAlign
End Sub

Private Sub UserControl_KeyDown(KeyCode As Integer, Shift As Integer)
    RaiseEvent KeyDown(KeyCode, Shift)
    
    If KeyCode = vbKeySpace Then
        m_SpcDown = True
        DrawButton BTN_DOWN
    Else
        m_SpcDown = False
        DrawButton BTN_FOCUS
    End If
End Sub

Private Sub UserControl_KeyPress(KeyAscii As Integer)
    RaiseEvent KeyPress(KeyAscii)
    
    If KeyAscii = vbKeyReturn Then
        RaiseEvent Click
    End If
End Sub

Private Sub UserControl_KeyUp(KeyCode As Integer, Shift As Integer)
    RaiseEvent KeyUp(KeyCode, Shift)
    If KeyCode = 32 And m_SpcDown And m_State = BTN_DOWN Then
        m_SpcDown = False
        
        DrawButton BTN_NORMAL
        RaiseEvent Click
        DrawButton BTN_FOCUS
        
    End If
End Sub

Private Sub UserControl_LostFocus()
    m_HasFocus = False
    DrawButton BTN_NORMAL
End Sub

Private Sub UserControl_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
   RaiseEvent MouseDown(Button, Shift, X, Y)
   If Button = 1 Then m_BtnDown = True
   UserControl_MouseMove Button, Shift, X, Y
End Sub

Private Sub UserControl_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If m_SpcDown Then Exit Sub
    
    RaiseEvent MouseMove(Button, Shift, X, Y)
    SetCapture hWnd
    If PointInControl(X, Y) Then
        'if pointer is on control
        If m_BtnDown Then
            If m_State <> BTN_DOWN Then
                DrawButton BTN_DOWN
            End If
        Else
            If m_State <> BTN_HOVER Then
                RaiseEvent MouseHover
                DrawButton BTN_HOVER
            End If
            
        End If
    Else
        'if pointer is out of control
        If m_BtnDown Then
            
            RaiseEvent MouseHover
            DrawButton BTN_HOVER
            
        Else
            RaiseEvent MouseOut
            If m_HasFocus Then
                DrawButton BTN_FOCUS
            Else
                DrawButton BTN_NORMAL
            End If
            ReleaseCapture
        End If
    End If
End Sub

Private Sub UserControl_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    
    m_BtnDown = False
'    If m_State <> BTN_NORMAL Then
        DrawButton BTN_NORMAL
'    End If
    
    RaiseEvent MouseUp(Button, Shift, X, Y)
    
    If Button = vbLeftButton Then
        If PointInControl(X, Y) Then RaiseEvent Click
'        If m_State <> BTN_FOCUS Then
            DrawButton BTN_FOCUS
'        End If
    End If
    
End Sub


Private Sub UserControl_Paint()
    Me.Refresh
End Sub

'Load property values from storage
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
    m_SizeCW = PropBag.ReadProperty("SizeCW", m_def_SizeCW)
    m_SizeCH = PropBag.ReadProperty("SizeCH", m_def_SizeCH)
    m_SkinPictureName = PropBag.ReadProperty("SPN", "")
   
    'Debug.Print "ReadProp SPN:"; m_SkinPictureName
   
    m_Text = PropBag.ReadProperty("Text", m_def_Text)
    m_FillWithColor = PropBag.ReadProperty("FillWithColor", m_def_FillWithColor)
    UserControl.Enabled = PropBag.ReadProperty("Enabled", True)
    UserControl.AccessKeys = PropBag.ReadProperty("AccessKey", "")
    m_TextColorEnabled = PropBag.ReadProperty("TextColorEnabled", m_def_TextColorEnabled)
    m_TextColorDisabled = PropBag.ReadProperty("TextColorDisabled", m_def_TextColorDisabled)
    Set UserControl.Font = PropBag.ReadProperty("Font", Ambient.Font)
    UserControl.MousePointer = PropBag.ReadProperty("MousePointer", 0)
    Set MouseIcon = PropBag.ReadProperty("MouseIcon", Nothing)
    m_DisableHover = PropBag.ReadProperty("DisableHover", m_def_DisableHover)
'    m_DownTextDX = PropBag.ReadProperty("DownTextDX", m_def_DownTextDX)
'    m_DownTextDY = PropBag.ReadProperty("DownTextDY", m_def_DownTextDY)
    m_DisplaceText = PropBag.ReadProperty("DisplaceText", m_def_DisplaceText)
    m_DrawFocus = PropBag.ReadProperty("DrawFocus", m_def_DrawFocus)
    m_TextColorDisabled2 = PropBag.ReadProperty("TextColorDisabled2", m_def_TextColorDisabled2)
    Set m_Picture = PropBag.ReadProperty("Picture", Nothing)
    m_PicturePos = PropBag.ReadProperty("PicturePos", m_def_PicturePos)
    m_PictureTColor = PropBag.ReadProperty("PictureTColor", m_def_PictureTColor)
    m_TextAlign = PropBag.ReadProperty("TextAlign", m_def_TextAlign)
    UserControl.BackColor = PropBag.ReadProperty("BackColor", &H8000000F)
End Sub

Private Sub UserControl_Resize()
    Refresh
End Sub

Private Sub UserControl_Show()
    
    SkinPictureName = m_SkinPictureName

   ' Refresh
End Sub

Private Sub UserControl_Terminate()
    Set m_SkinPicture = Nothing
    Set m_Picture = Nothing
    
    'Set UserControl = Nothing
    'Set Me = Nothing
    'Debug.Print "TERMINATE"
End Sub

'Write property values to storage
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
    Call PropBag.WriteProperty("SizeCW", m_SizeCW, m_def_SizeCW)
    Call PropBag.WriteProperty("SizeCH", m_SizeCH, m_def_SizeCH)
    
    'If m_SkinPicture Is Nothing = False Then
        Call PropBag.WriteProperty("SPN", m_SkinPictureName, "")
    'End If
    
    'Debug.Print "Write :"; m_SkinPictureName
    
    Call PropBag.WriteProperty("Text", m_Text, m_def_Text)
    Call PropBag.WriteProperty("FillWithColor", m_FillWithColor, m_def_FillWithColor)
    Call PropBag.WriteProperty("Enabled", UserControl.Enabled, True)
    Call PropBag.WriteProperty("AccessKey", UserControl.AccessKeys, "")
    Call PropBag.WriteProperty("TextColorEnabled", m_TextColorEnabled, m_def_TextColorEnabled)
    Call PropBag.WriteProperty("TextColorDisabled", m_TextColorDisabled, m_def_TextColorDisabled)
    Call PropBag.WriteProperty("Font", UserControl.Font, Ambient.Font)

    Call PropBag.WriteProperty("MousePointer", UserControl.MousePointer, 0)
    Call PropBag.WriteProperty("MouseIcon", MouseIcon, Nothing)
    Call PropBag.WriteProperty("DisableHover", m_DisableHover, m_def_DisableHover)
    Call PropBag.WriteProperty("DisplaceText", m_DisplaceText, m_def_DisplaceText)
    Call PropBag.WriteProperty("DrawFocus", m_DrawFocus, m_def_DrawFocus)
    Call PropBag.WriteProperty("TextColorDisabled2", m_TextColorDisabled2, m_def_TextColorDisabled2)
    Call PropBag.WriteProperty("Picture", m_Picture, Nothing)
    Call PropBag.WriteProperty("PicturePos", m_PicturePos, m_def_PicturePos)
    Call PropBag.WriteProperty("PictureTColor", m_PictureTColor, m_def_PictureTColor)
    Call PropBag.WriteProperty("TextAlign", m_TextAlign, m_def_TextAlign)
    Call PropBag.WriteProperty("BackColor", UserControl.BackColor, &H8000000F)
End Sub


Private Sub DrawButton(ByVal State As Integer)
    
    If m_DisableHover Then
        If State = BTN_HOVER Then Exit Sub
        'dont draw hover state if m_DisableHover is true
    End If
'    Debug.Print "State1 "; State

    On Error GoTo UnknownError

    Dim PicW As Long
    Dim PicH As Long 'width and height of picture

    Dim PicX As Long
    Dim PicY As Long 'picture pos

    Dim DH As Long  'button height
    Dim dw As Long  'button width
    Dim Align As Long 'text aligment
    Dim bDrawText As Boolean ' if picture is in center text is not drawn
    bDrawText = True

    Align = DT_VCENTER Or DT_SINGLELINE Or DT_END_ELLIPSIS

    Select Case m_TextAlign
        Case Is = vbLeftJustify:  Align = Align Or DT_LEFT
        Case Is = vbRightJustify: Align = Align Or DT_RIGHT
        Case Is = vbCenter:       Align = Align Or DT_CENTER
    End Select

    dw = UserControl.ScaleWidth
    DH = UserControl.ScaleHeight

    m_State = State
    'if skin picture is not set then just draw text on control
    If m_SkinPicture Is Nothing Then
        ClearRect hDC, SetRect(0, 0, dw, DH), TranslateColor(UserControl.BackColor)
        DrawText hDC, m_Text, SetRect(0, 0, dw, DH), Align
        If UserControl.AutoRedraw = True Then
            UserControl.Refresh
        End If
        Exit Sub
    End If


    m_SkinPicture.ScaleMode = vbPixels


    Dim SrcLeft As Long     'left cordinate of skin in skinpicture
    Dim SrcRight As Long    'right -II-
    Dim FillColor As Long   'color to fill middle area of button
                            'used if m_FillWithColor is true

    Dim H As Long           'height of skinpicture
    Dim W As Long           'width of button skin

    H = m_SkinPicture.ScaleHeight
    W = m_SkinPicture.ScaleWidth / 5
'Debug.Print H, W
'
    SrcLeft = (State - 1) * W
    SrcRight = State * W

    If m_FillWithColor Then
        'get color to fill with from (SrcLeft+m_SizeCW +1 , m_SizeCH+1) on
        'skin picture
        FillColor = m_SkinPicture.Point(SrcLeft + m_SizeCW + 1, m_SizeCH + 1)
    End If

'Exit Sub
    ClearRect hDC, SetRect(0, 0, dw, DH), TranslateColor(UserControl.BackColor)
    If m_FillWithColor Then
        'paint button with fillcolor
        'NOTE: it would be nice if there is gradient file
        ClearRect hDC, SetRect(m_SizeCW, m_SizeCH, dw - m_SizeCW, DH - m_SizeCH), FillColor
        'ABOUT ADDING GRADIENT FILL
        'read second color from skin at
        'point (srcleft+cw+1, H -m_sizeCH-1)
        'may be implemented in MyButton2
    Else
        'tile skin
         TilePicture SetRect(m_SizeCW, m_SizeCH, dw - m_SizeCW, DH - m_SizeCH), _
           SetRect(SrcLeft + m_SizeCW, m_SizeCH, SrcRight - m_SizeCW, H - m_SizeCH), _
           m_SkinPicture.hDC, False, SRCCOPY
    End If

    'draws borders
    If (m_SizeCH > 0 And m_SizeCW > 0) Then
        TilePicture SetRect(m_SizeCW, 0, dw, m_SizeCH), _
            SetRect(SrcLeft + m_SizeCW, 0, SrcRight - m_SizeCW, m_SizeCH), _
            m_SkinPicture.hDC, False, SRCCOPY

        TilePicture SetRect(m_SizeCW, DH - m_SizeCH, dw, DH), _
            SetRect(SrcLeft + m_SizeCW, H - m_SizeCH, SrcRight - m_SizeCW, H), _
            m_SkinPicture.hDC, False, SRCCOPY

        TilePicture SetRect(0, 0, m_SizeCW, DH), _
            SetRect(SrcLeft, m_SizeCH, SrcLeft + m_SizeCW, H - m_SizeCH), _
            m_SkinPicture.hDC, False, SRCCOPY

        TilePicture SetRect(dw - m_SizeCW, m_SizeCH, dw, DH - m_SizeCH), _
            SetRect(SrcRight - m_SizeCW, m_SizeCH, SrcRight, H - m_SizeCH), _
            m_SkinPicture.hDC, False, SRCCOPY

        'draws corners
        'NOTE: must chage to transparent blit (done)
        TransBlt hDC, 0, 0, m_SizeCW, m_SizeCH, m_SkinPicture.hDC, SrcLeft, 0, &HFF00FF
        TransBlt hDC, 0, DH - m_SizeCH, m_SizeCW, m_SizeCH, m_SkinPicture.hDC, SrcLeft, H - m_SizeCH, &HFF00FF

        TransBlt hDC, dw - m_SizeCW, 0, m_SizeCW, m_SizeCH, m_SkinPicture.hDC, SrcRight - m_SizeCW, 0, &HFF00FF
        TransBlt hDC, dw - m_SizeCW, DH - m_SizeCH, m_SizeCW, m_SizeCH, m_SkinPicture.hDC, SrcRight - m_SizeCW, H - m_SizeCH, &HFF00FF
    End If

    Dim PColor As Long 'previous color

    PColor = UserControl.ForeColor

    Dim TextRect As RECT
    If State = BTN_DOWN Then
        TextRect = SetRect(m_SizeCW + m_DisplaceText, m_SizeCH + m_DisplaceText, dw - m_SizeCW + m_DisplaceText - 3, DH - m_SizeCH + m_DisplaceText)
    Else
        TextRect = SetRect(m_SizeCW, m_SizeCH, dw - m_SizeCW - 3, DH - m_SizeCH)
    End If
        If m_Picture Is Nothing Then
            If m_State = BTN_DISABLED Then
                'draw text only
                'dont draw text2 if colors are the same
                If m_TextColorDisabled <> m_TextColorDisabled2 Then
                    UserControl.ForeColor = m_TextColorDisabled2
                    TextRect = ModifyRect(TextRect, 1, 1, 1, 1)
                    DrawText hDC, m_Text, TextRect, Align
                    TextRect = ModifyRect(TextRect, -1, -1, -1, -1)
                End If
                UserControl.ForeColor = m_TextColorDisabled
                DrawText hDC, m_Text, TextRect, Align
            Else
                'draw text only
                UserControl.ForeColor = m_TextColorEnabled
                DrawText hDC, m_Text, TextRect, Align
            End If
        Else

            GetBmpSize m_Picture, PicW, PicH
            PicY = (DH - PicH) / 2
            If m_State = BTN_DOWN Then
                PicY = PicY + m_DisplaceText
            End If



            Select Case m_PicturePos
                Case Is = ppLeft
                    PicX = TextRect.Left + 3
                    TextRect.Left = PicX + PicW + TextRect.Left
                Case Is = ppRight
                    PicX = TextRect.Right - PicW - 3 + TextRect.Left - m_SizeCW
                    TextRect.Right = PicX - 3
                Case Is = ppTop
                    PicX = (dw - PicW) / 2 + TextRect.Left - SizeCW
                    PicY = (DH - PicH - 3 - UserControl.TextHeight("I")) / 2 + TextRect.Top - SizeCH
                    TextRect.Top = PicY + PicW + 3
                    TextRect.Bottom = TextRect.Top + UserControl.TextHeight("I") * 1.2
                Case Is = ppBottom
                    TextRect.Top = (DH - PicH - 3 - UserControl.TextHeight("I")) / 2 + TextRect.Top - SizeCH
                    PicX = (dw - PicW) / 2 + TextRect.Left - SizeCW
                    TextRect.Bottom = TextRect.Top + UserControl.TextHeight("I") * 1.2
                    PicY = TextRect.Bottom + 3
                Case Is = ppCenter
                    PicX = (dw - PicW) / 2
                    If BTN_DOWN Then PicX = PicX + m_DisplaceText
                    bDrawText = False
            End Select

'            Debug.Print "State2 "; State

            If m_State = BTN_DISABLED Then
                'draw text and picture disabled
                DrawPictureDisabled m_Picture, PicX, PicY, PicW, PicH
                If m_TextColorDisabled <> m_TextColorDisabled2 Then
                    If bDrawText Then
                        UserControl.ForeColor = m_TextColorDisabled2
                        TextRect = ModifyRect(TextRect, 1, 1, 1, 1)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美私人免费视频| 国产午夜精品理论片a级大结局| 麻豆国产精品官网| 国产精品色哟哟| 日韩欧美资源站| 欧美中文字幕一区| 成人av网站在线观看| 美腿丝袜亚洲综合| 亚洲一区在线观看视频| 国产欧美精品日韩区二区麻豆天美 | 中文字幕一区三区| 日韩精品中文字幕在线不卡尤物| 在线观看视频欧美| www.亚洲人| 韩国欧美国产1区| 日本最新不卡在线| 亚洲妇女屁股眼交7| 综合久久一区二区三区| 欧美极品aⅴ影院| 欧美v国产在线一区二区三区| 欧美日韩日日摸| 91传媒视频在线播放| av亚洲产国偷v产偷v自拍| 国内成人精品2018免费看| 日本亚洲天堂网| 香蕉成人伊视频在线观看| 亚洲男人天堂av| 自拍偷拍欧美精品| 国产精品欧美精品| 国产日韩精品视频一区| 国产日韩欧美在线一区| 久久久久久久久久久久电影 | 激情久久五月天| 美国av一区二区| 男人操女人的视频在线观看欧美| 午夜精品久久久久久| 亚洲一区二区三区视频在线播放 | 国产不卡在线视频| 国产激情一区二区三区桃花岛亚洲| 久久成人免费网站| 久久国产精品色| 经典三级一区二区| 国产一区在线观看视频| 国产一区二区三区av电影| 国内久久婷婷综合| 国产精品1区2区3区| 国产伦精一区二区三区| 国产福利精品导航| www..com久久爱| 91丨九色丨蝌蚪丨老版| 色老汉一区二区三区| 欧日韩精品视频| 欧美久久久影院| 日韩欧美资源站| 国产日韩欧美激情| 日韩美女视频19| 亚洲一区二区视频| 奇米影视一区二区三区小说| 精品一区二区三区香蕉蜜桃| 国精产品一区一区三区mba视频 | 亚洲欧美视频一区| 午夜精品久久久久久久99水蜜桃| 蜜桃一区二区三区在线观看| 国产精品综合在线视频| av日韩在线网站| 欧美日韩视频第一区| 精品精品欲导航| 国产精品视频在线看| 亚洲小说春色综合另类电影| 日本不卡不码高清免费观看| 高清国产一区二区三区| 91麻豆免费看片| 欧美一区午夜视频在线观看| 久久久www成人免费毛片麻豆 | 成人天堂资源www在线| 日本二三区不卡| 日韩一区二区三区观看| 国产片一区二区三区| 一区二区三区在线免费播放| 激情综合亚洲精品| 一本色道久久综合精品竹菊| 日韩无一区二区| 国产精品另类一区| 午夜精品福利久久久| 国产二区国产一区在线观看 | 日本一区二区三区国色天香| 亚洲一区免费在线观看| 国产一区二区三区免费播放| 在线观看视频91| 欧美国产成人在线| 日本不卡的三区四区五区| 91丨九色丨尤物| 久久免费视频色| 亚洲成av人片观看| av亚洲精华国产精华精华| 欧美sm美女调教| 亚洲一区二区在线播放相泽| 成人午夜在线免费| 日韩精品一区二区三区老鸭窝| 亚洲码国产岛国毛片在线| 国产一区二区精品久久99| 欧美午夜精品久久久久久超碰| 亚洲国产精品成人综合| 美女www一区二区| 欧美日韩亚洲综合| 亚洲美女淫视频| 北条麻妃一区二区三区| 精品日产卡一卡二卡麻豆| 亚欧色一区w666天堂| 一本色道综合亚洲| 国产免费成人在线视频| 精品综合久久久久久8888| 制服丝袜国产精品| 亚洲高清免费视频| 93久久精品日日躁夜夜躁欧美| 国产欧美一区二区精品性色超碰| 奇米综合一区二区三区精品视频| 欧美三级日韩三级| 亚洲制服丝袜一区| 一本久久精品一区二区| 国产精品国产成人国产三级| 成人看片黄a免费看在线| 久久久久久久综合狠狠综合| 久久精品久久久精品美女| 91麻豆精品国产91久久久久久久久 | 亚洲精品在线一区二区| 美国av一区二区| 日韩欧美国产wwwww| 日本麻豆一区二区三区视频| 欧美挠脚心视频网站| 亚洲成a人在线观看| 欧美日韩国产高清一区二区三区| 亚洲蜜桃精久久久久久久| 97成人超碰视| 亚洲黄色录像片| 在线观看日韩一区| 亚洲图片欧美综合| 欧美日本一区二区三区四区 | 亚洲欧美日韩久久| 色综合咪咪久久| 亚洲综合色自拍一区| 欧美日产在线观看| 另类小说图片综合网| 欧美精品一区二区三区在线 | 三级精品在线观看| 欧美精品粉嫩高潮一区二区| 日韩高清欧美激情| 欧美大片拔萝卜| 国产一区欧美二区| 国产日韩精品一区二区三区在线| 波多野结衣中文字幕一区二区三区 | 欧美酷刑日本凌虐凌虐| 免费av成人在线| 久久久精品免费网站| av在线不卡免费看| 亚洲资源中文字幕| 精品少妇一区二区三区在线视频| 国产成人午夜99999| 亚洲免费观看高清完整版在线| 欧美日韩在线观看一区二区| 老司机免费视频一区二区| 国产免费成人在线视频| 色94色欧美sute亚洲线路一ni | 欧美日韩在线免费视频| 蜜桃久久av一区| 中文字幕va一区二区三区| 在线视频亚洲一区| 麻豆国产欧美一区二区三区| 欧美激情在线一区二区| 日本韩国精品一区二区在线观看| 日本中文一区二区三区| 亚洲国产电影在线观看| 欧美猛男男办公室激情| 国产一区 二区 三区一级| 亚洲视频免费看| 欧美白人最猛性xxxxx69交| 成人va在线观看| 欧美aaaaaa午夜精品| 亚洲欧洲另类国产综合| 欧美一级黄色片| av综合在线播放| 久久精品国内一区二区三区| 国产精品黄色在线观看| 欧美一区二区三区免费在线看| 国产一区二区三区| 午夜视频在线观看一区二区三区| 久久综合色婷婷| 欧美日韩精品一区二区天天拍小说 | 婷婷一区二区三区| 国产精品第13页| 精品国免费一区二区三区| 在线观看国产一区二区| 国产91精品在线观看| 日本女人一区二区三区| 一区二区在线观看视频| 国产日本欧洲亚洲| 91精品国产综合久久精品图片 | 亚洲综合区在线| 久久精品欧美日韩| 91精品国产一区二区人妖|