DS控件庫 Win7鏈接列表框的仿Windows開始菜單樣式
阿新 • • 發佈:2019-02-28
開始菜單 send 事件 rectangle ext args rect win7 menus
Win7鏈接列表框是依照Windows7的開始菜單開發的,同時進行了屬性和功能的擴展。
效果圖
項屬性
控件屬性
控件主要事件
點擊項(Sender As Win7鏈接列表框, Itm As 鏈接項, e As MouseEventArgs) 雙擊項(Sender As Win7鏈接列表框, Itm As 鏈接項, e As MouseEventArgs) 移入項(Sender As Win7鏈接列表框, Itm As 鏈接項, e As MouseEventArgs) 移出項(Sender As Win7鏈接列表框, e As MouseEventArgs) 點擊箭頭區域(Sender As Win7鏈接列表框, Itm As 鏈接項, 箭頭區域 As Rectangle)
示例代碼
Private Sub Win7鏈接列表框1_點擊箭頭區域(Sender As Win7鏈接列表框, Itm As Win7鏈接列表框.鏈接項, 箭頭區域 As Rectangle) Handles Win7鏈接列表框1.點擊箭頭區域 ContextMenuStrip1.Show(Win7鏈接列表框1.PointToScreen(New Point(Itm.矩形區域.Right, Itm.矩形區域.Top) - New Point(3, 0))) End Sub
DS控件庫 Win7鏈接列表框的仿Windows開始菜單樣式