Quay lại trang chủ

UniTreeView

Control UniTreeView.ctl

Component Type ActiveX UserControl
Properties Methods Events

Thuộc tính (Properties)

Tên Kiểu Mô tả chuyên sâu
CheckBoxes Boolean Dữ liệu mô tả đang được cập nhật...
Enabled Boolean Dữ liệu mô tả đang được cập nhật...
SelectedNode Long Dữ liệu mô tả đang được cập nhật...
NodeText String Dữ liệu mô tả đang được cập nhật...
NodeImage Long Dữ liệu mô tả đang được cập nhật...
NodeSelectedImage Long Dữ liệu mô tả đang được cập nhật...
NodeBold Boolean Dữ liệu mô tả đang được cập nhật...
NodeGhosted Boolean Dữ liệu mô tả đang được cập nhật...
NodeHilited Boolean Dữ liệu mô tả đang được cập nhật...
NodePlusMinusButton Boolean Dữ liệu mô tả đang được cập nhật...
NodeChecked Boolean Dữ liệu mô tả đang được cập nhật...
NodeTag String Dữ liệu mô tả đang được cập nhật...
NodeRoot Long Dữ liệu mô tả đang được cập nhật...
NodeParent Long Dữ liệu mô tả đang được cập nhật...
NodeChild Long Dữ liệu mô tả đang được cập nhật...
NodeFirstVisible Long Dữ liệu mô tả đang được cập nhật...
NodeLastVisible Long Dữ liệu mô tả đang được cập nhật...
NodePrevious Long Dữ liệu mô tả đang được cập nhật...
NodeNext Long Dữ liệu mô tả đang được cập nhật...
NodeFirstSibling Long Dữ liệu mô tả đang được cập nhật...
NodeLastSibling Long Dữ liệu mô tả đang được cập nhật...
NodePreviousSibling Long Dữ liệu mô tả đang được cập nhật...
NodeNextSibling Long Dữ liệu mô tả đang được cập nhật...
NodeVisible Boolean Dữ liệu mô tả đang được cập nhật...
NodeExpanded Boolean Dữ liệu mô tả đang được cập nhật...
NodeExpandedOnce Boolean Dữ liệu mô tả đang được cập nhật...
NodeCount Long Dữ liệu mô tả đang được cập nhật...
NodeChildren Long Dữ liệu mô tả đang được cập nhật...
NodeFullPath Variant Dữ liệu mô tả đang được cập nhật...
NodeLevel Long Dữ liệu mô tả đang được cập nhật...
hwnd Long Dữ liệu mô tả đang được cập nhật...
Font StdFont Dữ liệu mô tả đang được cập nhật...
ItemHeight Long Dữ liệu mô tả đang được cập nhật...
ItemIndent Long Dữ liệu mô tả đang được cập nhật...
HasButtons Boolean Dữ liệu mô tả đang được cập nhật...
HasLines Boolean Dữ liệu mô tả đang được cập nhật...
HasRootLines Boolean Dữ liệu mô tả đang được cập nhật...
LabelEdit Boolean Dữ liệu mô tả đang được cập nhật...
SingleExpand Boolean Dữ liệu mô tả đang được cập nhật...
BackColor OLE_COLOR Dữ liệu mô tả đang được cập nhật...
OLEDragAutoExpand Boolean Dữ liệu mô tả đang được cập nhật...
OLEDragInsertStyle tvOLEDragInsertStyleConstants Dữ liệu mô tả đang được cập nhật...
OLEDragMode tvOLEDragConstants Dữ liệu mô tả đang được cập nhật...
OLEDropMode tvOLEDropConstants Dữ liệu mô tả đang được cập nhật...
Theme String Dữ liệu mô tả đang được cập nhật...
Style DQHStyle Dữ liệu mô tả đang được cập nhật...
AutoLoadTheme Boolean Dữ liệu mô tả đang được cập nhật...

Phương thức (Methods)

Loại Tên phương thức Tham số truyền vào (Params)
Sub zSubclass_Proc (ByVal bBefore As Boolean, ByRef bHandled As Boolean, ByRef lReturn As Long, ByRef lng_hWnd As Long, ByRef uMsg As Long, ByRef wParam As Long, ByRef lParam As Long)
Function ImageList (Optional hImageList As ImageListXP = Nothing, Optional ImageWidth As Long = 16, Optional ImageHeight As Long = 16)
Sub SetRedrawMode (ByVal Enable As Boolean)
Sub Clear (None)
Sub HoldDeletePostProcess (ByVal Hold As Boolean)
Function DeleteNode (ByVal hNode As Long)
Function IsValidKey (ByVal Key As String)
Function GetKeyNode (ByVal Key As String)
Function GetNodeKey (ByVal hNode As Long)
Function StartLabelEdit (ByVal hNode As Long)
Sub EndLabelEdit (ByVal Cancel As Boolean)
Sub EnsureVisible (ByVal hNode As Long)
Sub Expand (ByVal hNode As Long, Optional ByVal ExpandChildren As Boolean = False)
Sub Collapse (ByVal hNode As Long, Optional ByVal CollapseChildren As Boolean = False)
Sub SortChildren (ByVal hNode As Long, Optional ByVal SortAllLevels As Boolean = False)
Sub CheckChildren (ByVal hNode As Long, ByVal New_NodeChecked As Boolean)
Function HitTest (ByVal X As Long, ByVal Y As Long, Optional ByVal FullRowHit As Boolean = True)
Sub SetInsertionMark (ByVal hNode As Long, Optional ByVal InsertAfter As Boolean = True)
Sub SetHilitedNode (ByVal hNode As Long)
Sub Scroll (ByVal Direction As tvScrollConstants)
Sub Aboutbox (None)
Function OLEIsMyFormat (Data As DataObject)
Function OLEGetDragInfo (Data As DataObject, hWndTreeView As Long, hNodeDrag As Long)
Sub OLEGetDropInfo (hNodeDrop As Long, InsertAfter As Boolean)

Sự kiện (Events)

Tên sự kiện Cấu trúc tham số
Click (None)
NodeChange (ByVal hNode As Long)
NodeClick (ByVal hNode As Long)
NodeCheck (ByVal hNode As Long)
NodeDblClick (ByVal hNode As Long)
SelectionChanged (None)
AfterExpand (ByVal hNode As Long)
Collapse (ByVal hNode As Long)
BeforeLabelEdit (ByVal hNode As Long, Cancel As Integer)
AfterLabelEdit (ByVal hNode As Long, Cancel As Integer, NewString As String)
KeyDown (KeyCode As Integer, Shift As Integer)
KeyPress (KeyAscii As Integer)
KeyUp (KeyCode As Integer, Shift As Integer)
MouseDown (Button As Integer, Shift As Integer, X As Long, Y As Long)
MouseMove (Button As Integer, Shift As Integer, X As Long, Y As Long)
MouseUp (Button As Integer, Shift As Integer, X As Long, Y As Long)
MouseEnter (None)
MouseLeave (None)
Resize (None)
RaPaintScroll (ByVal lhWnd As Long, ByVal lhDC As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal x2 As Long, ByVal y2 As Long, ByVal ePart As sbOnPaintPartCts, ByVal eState As sbOnPaintPartStateCts, ByVal sVertical As Boolean)
Repaint (ByVal hwnd As Long, ByVal lhDC As Long, ByVal plDraw As Integer, ByVal X As Long, ByVal Y As Long, ByVal X1 As Long, ByVal Y1 As Long)
OLEStartDrag (Data As DataObject, AllowedEffects As Long)
OLEGiveFeedback (Effect As Long, DefaultCursors As Boolean)
OLEDragOver (Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer)
OLEDragDrop (Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
OLECompleteDrag (Effect As Long)
RaPaintScroll (0, hdc, X1, Y1, x2, y2, Part, IIf(Pressed, ppsPressed, IIf(bMove, ppsHot, ppsNormal)
Repaint (UserControl.hwnd, UserControl.hdc, 0, 0, 0, ScaleWidth, ScaleHeight)
NodeClick (hNode)
MouseUp ((uNMH.Code = NM_CLICK)
NodeDblClick (hNode)
NodeClick (uNMTV.itemNew.hItem)
BeforeLabelEdit (uNMTVDI.Item.hItem, nCancel)
AfterLabelEdit (.hItem, nCancel, sText)
KeyDown (wParam And &H7FFF&, pvShiftState()
NodeCheck (SelectedNode()
KeyPress (wParam And &H7FFF&)
NodeChange (SelectedNode()
KeyUp (wParam And &H7FFF&, pvShiftState()
AfterExpand (SelectedNode()
Collapse (SelectedNode()
MouseDown (pvButton(uMsg)
NodeCheck (hNode)
MouseMove (pvButton(uMsg)
MouseUp (pvButton(uMsg)
NodeChange (hExpandNode)
AfterExpand (hExpandNode)
Collapse (hExpandNode)
OLEStartDrag (Data, AllowedEffects)
now (Target)
OLEDragOver (Data, Effect, Button, Shift, X, Y, State)
OLEGiveFeedback (Effect, DefaultCursors)
OLEDragDrop (Data, Effect, Button, Shift, X, Y)
OLECompleteDrag (Effect)