Quay lại trang chủ

UniCombobox

Control UniCombobox.ctl

Component Type ActiveX UserControl
Properties Methods Events

Thuộc tính (Properties)

Tên Kiểu Mô tả chuyên sâu
NewIndex Long Dữ liệu mô tả đang được cập nhật...
SelectedData Variant Dữ liệu mô tả đang được cập nhật...
ListCount Long Dữ liệu mô tả đang được cập nhật...
Text String Dữ liệu mô tả đang được cập nhật...
ListIcon Long Dữ liệu mô tả đang được cập nhật...
itemData Variant Dữ liệu mô tả đang được cập nhật...
List String Dữ liệu mô tả đang được cập nhật...
ListIndent String Dữ liệu mô tả đang được cập nhật...
ForeColor OLE_COLOR Dữ liệu mô tả đang được cập nhật...
Enabled Boolean Dữ liệu mô tả đang được cập nhật...
Font Font Dữ liệu mô tả đang được cập nhật...
ImageListName String Dữ liệu mô tả đang được cập nhật...
ParentCtl Object Dữ liệu mô tả đang được cập nhật...
ItemHeight Long Dữ liệu mô tả đang được cập nhật...
MaxItemShow Long Dữ liệu mô tả đang được cập nhật...
Icon Long Dữ liệu mô tả đang được cập nhật...
ListIndex Long Dữ liệu mô tả đang được cập nhật...
ListImages ListImages Dữ liệu mô tả đang được cập nhật...
Style cbUserStyle Dữ liệu mô tả đang được cập nhật...
Item String Dữ liệu mô tả đang được cập nhật...
ComboStyle DQHStyle Dữ liệu mô tả đang được cập nhật...
Source Variant Dữ liệu mô tả đang được cập nhật...
Sort SortConst Dữ liệu mô tả đang được cập nhật...
Theme Variant Dữ liệu mô tả đang được cập nhật...
AutoFitDropDown Boolean Auto fit size dropdown for item. If false, it fit to Combo width
BackColor OLE_COLOR Dữ liệu mô tả đang được cập nhật...
Locked Boolean Dữ liệu mô tả đang được cập nhật...
UniToolTipText String 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)
Function AddItem (ByVal lText As Variant, Optional ByVal lIconIndex As Long = -1, Optional ByVal lItemData As Variant = "", Optional ByVal lIndex As Long = 0, Optional ByVal Indent As Long = 0)
Function GetDataFromRecordSet (ByVal DB_Address As String, ByVal DB_Password As String, ByVal SQL As String, ByVal ListColumnName As String, ByVal DataColumnName As String)
Sub Refresh (None)
Sub Clear (None)
Sub AboutControls (None)
Function Remove (Index As Long)
Function Search (ByVal vStr As String, Optional ByVal bSearchAll As Boolean = True, Optional ByVal bFilter As Boolean = False)
Function Find (vStr As String)
Sub CreateImageList (ByVal lWidth As Long, ByVal lHeight As Long)
Function SaveToFile (ByVal Address As String)
Function LoadFromFile (ByVal Address As String)

Sự kiện (Events)

Tên sự kiện Cấu trúc tham số
Click (None)
Change (None)
DropDown (None)
CloseUp (None)
ItemClick (ByVal CurrentIndex As Long)
DblClick (None)
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 Single, Y As Single)
MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
RePaintCombo (hwnd As Long, lhDC As Long, State As Integer, plDraw As Integer, cLeft As Long, cTop As Long, cRight As Long, cBottom As Long)
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)
MouseDown (Button, Shift, X, Y)
MouseMove (Button, Shift, X, Y)
ItemClick (ListIndex)
MouseUp (Button, Shift, X, Y)
MouseDown (Button, Shift, X, Y)
MouseUp (Button, Shift, X, Y)
RePaintCombo (hwnd, lhDC, State, 1, cLeft, cTop, cRight, cBottom)
KeyDown (KeyCode, (Shift)
KeyPress (KeyAscii)
KeyUp (KeyCode, (Shift)
MouseDown (Button, Shift, X, Y)
MouseMove (Button, Shift, X, Y)
MouseUp (Button, Shift, X, Y)
RePaintCombo (StrPtr(mText)
RePaintCombo (StrPtr(mText)
RePaintCombo (StrPtr(mText)
RePaintCombo (hwnd, hDC, IIf(bFocus, 3, 0)
RePaintCombo (hwnd, hDC, CInt(State)
RePaintCombo (hwnd, hDC, 1, 0, 3, 3, ScaleWidth - 20, ScaleHeight - 3)
RePaintCombo (StrPtr(Text)
RePaintCombo (StrPtr(Text)
RaPaintScroll (lhWnd, lhDC, x1, y1, x2, y2, ePart, eState, sVertical)