-
Posts
11,984 -
Joined
-
Last visited
-
Days Won
68
mLipok last won the day on May 11
mLipok had the most liked content!
About mLipok

- Birthday 07/19/1978
Profile Information
-
Member Title
Sometimes... even usually I'm nitpicky.
-
Location
Europe, Poland, Upper Silesia, Zabrze
-
Interests
¯\_(ツ)_/¯
Recent Profile Visitors
31,061 profile views
mLipok's Achievements
-
Danyfirex reacted to a post in a topic:
TxTextControl - C++ >>> AutoIT
-
btw. There is free version: https://www.textcontrol.com/product/tx-text-control-express/
-
Hm... I back to this case with ChatGPT which uses: Local $oObj = $oFactory.CreateInstanceLic(0, 0, $IID_IDispatch, $sLicenseKey) here is example: #AutoIt3Wrapper_UseX64=N #include <MsgBoxConstants.au3> _Example() Func _Example() ;========================================================= ; TEST ;========================================================= Local $sKey = "YOUR_LICENSE_KEY" Local $sLog = @ScriptDir & "\tx_debug.log" Local $oTX = _TXTextControl_Create($sKey, True, $sLog) If IsObj($oTX) Then MsgBox($MB_ICONINFORMATION, "TX Text Control", "OK - control initialized") ; SAFE ACCESS $oTX.Text = "Hello TX Text Control" Else MsgBox($MB_ICONERROR, "TX Text Control", "Initialization error") EndIf EndFunc ;==>_Example ;========================================================= ; MAIN FUNCTION ;========================================================= Func _TXTextControl_Create($sLicenseKey, $bDebug = True, $sLogFile = "") Local Const $CLSCTX_INPROC_SERVER = 1 Local Const $CLSID_TX = "{510E4201-2487-11E4-A584-0013D350667C}" Local Const $IID_IClassFactory2 = "{B196B28F-BAB4-101A-B69C-00AA00341D07}" Local Const $IID_IDispatch = "{00020400-0000-0000-C000-000000000046}" __log("INIT COM", $bDebug, $sLogFile) DllCall("ole32.dll", "long", "CoInitialize", "ptr", 0) ;========================================================= ; CLSID / IID ;========================================================= Local $tCLSID = DllStructCreate("byte[16]") Local $pCLSID = DllStructGetPtr($tCLSID) Local $tIIDFactory = DllStructCreate("byte[16]") Local $tIIDDispatch = DllStructCreate("byte[16]") Local $aCLSID = DllCall("ole32.dll", "long", "CLSIDFromString", _ "wstr", $CLSID_TX, _ "ptr", $pCLSID) If @error Or $aCLSID[0] <> 0 Then __log("CLSIDFromString FAILED", $bDebug, $sLogFile) Return 0 EndIf DllCall("ole32.dll", "long", "IIDFromString", _ "wstr", $IID_IClassFactory2, _ "ptr", DllStructGetPtr($tIIDFactory)) DllCall("ole32.dll", "long", "IIDFromString", _ "wstr", $IID_IDispatch, _ "ptr", DllStructGetPtr($tIIDDispatch)) ;========================================================= ; MODE 1 - SAFE IClassFactory2 (NO CRASH) ;========================================================= __log("MODE 1: CreateInstanceLic (SAFE)", $bDebug, $sLogFile) Local $aFactory = DllCall("ole32.dll", "long", "CoGetClassObject", _ "ptr", $pCLSID, _ "dword", $CLSCTX_INPROC_SERVER, _ "ptr", 0, _ "ptr", DllStructGetPtr($tIIDFactory), _ "ptr*", 0) If @error Or $aFactory[0] <> 0 Then __log("MODE 1 FAIL: CoGetClassObject", $bDebug, $sLogFile) Else Local $pFactory = $aFactory[5] ; SAFE COM WRAP (NO VTABLE, NO DLLCALLADDRESS) Local $oFactory = ObjCreateInterface($pFactory, $IID_IClassFactory2) If IsObj($oFactory) Then Local $oObj = $oFactory.CreateInstanceLic(0, 0, $IID_IDispatch, $sLicenseKey) If IsObj($oObj) Then __log("MODE 1 SUCCESS", $bDebug, $sLogFile) Return $oObj EndIf EndIf __log("MODE 1 FAILED: CreateInstanceLic", $bDebug, $sLogFile) EndIf ;========================================================= ; MODE 2 - License Manager ;========================================================= __log("MODE 2: LicManager", $bDebug, $sLogFile) Local $oLic = ObjCreate("TIS.TX.LicManager.30") If IsObj($oLic) Then __log("LicManager OK", $bDebug, $sLogFile) Else __log("LicManager FAIL", $bDebug, $sLogFile) EndIf ;========================================================= ; MODE 3 - Direct ActiveX ;========================================================= __log("MODE 3: Direct Create", $bDebug, $sLogFile) Local $oTX = ObjCreate("TIS.TX.TextControl.30") If IsObj($oTX) Then __log("MODE 3 SUCCESS", $bDebug, $sLogFile) $oTX.LicenseKey = $sLicenseKey Return $oTX EndIf __log("ALL MODES FAILED", $bDebug, $sLogFile) Return 0 EndFunc ;==>_TXTextControl_Create ;========================================================= ; LOGGER ;========================================================= Func __log($msg, $bDebug, $sLogFile) If $bDebug Then ConsoleWrite("[TX] " & $msg & @CRLF) If $sLogFile <> "" Then FileWrite($sLogFile, "[TX] " & $msg & @CRLF) EndFunc ;==>__log almost with success as the control initialize with this following Trial Version info: But finally I get error in Exit code: Wondering how to fix this. Any help would be appreciated.
-
mLipok reacted to a post in a topic:
WPS Office Adapter
-
Keep graphics context always showing
mLipok replied to pixelsearch's topic in AutoIt Technical Discussion
Sorry if I interrupt but I think I had similar problem in the past (still not solved) with my: Func _QPDF_Display(ByRef $oQP, $sPDF_Display_Comment = '', $iLeft = -1, $iTop = 0, $iWidth = 600, $iSelectPage = 1) __QPDF_IsUnlocked($oQP) If @error Then Return SetError(@error, @extended, $QPDF_RET_FAILURE) Local $sPDF_Display_Title = 'QuickPDF Test Display: ' & $sPDF_Display_Comment ; select Page If $iSelectPage = -1 Then $iSelectPage = $oQP.PageCount $oQP.SelectPage($iSelectPage) ; ; @TODO _QPDF_SetDefaultCoordinates($oQP) _QPDF_SetDefaultCoordinates($oQP) ;~ $oQP.SetOrigin($QPDF_SORIGIN_BottomLeft) ;~ $oQP.SetMeasurementUnits($QPDF_MUNITS_Milimeters) $oQP.NormalizePage(0) $oQP.CombineContentStreams() $oQP.SelectContentStream(1) ; Local $sOutput ; $sOutput &= BinaryToString($oQP.GetContentStreamToVariant()) & @CRLF ; $oQP.SelectContentStream(1) ; calculate DPI Local $iPageWidth = $oQP.PageWidth() Local $iPageHeight = $oQP.PageHeight() ; Local $iInches = $iPageWidth / 72 Local $iDisplayDPI = ($iWidth / $iPageWidth) * 72 / 3 ; create GUI Local $iHeight = ($iWidth * $iPageHeight) / $iPageWidth Local $hWND_QP_TestDisplay = GUICreate($sPDF_Display_Title, $iWidth, $iHeight, $iLeft, $iTop) Local $hDC = _WinAPI_GetDC($hWND_QP_TestDisplay) GUISetState(@SW_SHOW) ; render QP object to Device Context $oQP.RenderPageToDC($iDisplayDPI, $iSelectPage, $hDC) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd _WinAPI_ReleaseDC($hWND_QP_TestDisplay, $hDC) GUIDelete($hWND_QP_TestDisplay) ; Deletes a GUI window and all controls that it contains. EndFunc ;==>_QPDF_Display This example just create window, get DC and than render QP object to Device Context. ; create GUI Local $iHeight = ($iWidth * $iPageHeight) / $iPageWidth Local $hWND_QP_TestDisplay = GUICreate($sPDF_Display_Title, $iWidth, $iHeight, $iLeft, $iTop) Local $hDC = _WinAPI_GetDC($hWND_QP_TestDisplay) GUISetState(@SW_SHOW) ; render QP object to Device Context $oQP.RenderPageToDC($iDisplayDPI, $iSelectPage, $hDC) But maybe this is not the same issue. But in any case I could open separate topic for this issue and help request. -
mLipok reacted to a post in a topic:
Hotkey control example
-
mLipok reacted to a file:
FloralTextGenerator
-
mLipok reacted to a post in a topic:
Combo box click item
-
ListView LVM_GETNEXTITEM + LVNI_SAMEGROUPONLY
mLipok replied to mLipok's topic in AutoIt GUI Help and Support
Thanks to @Nine code from here: ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER ) here is my modified code: ;~ https://www.autoitscript.com/forum/topic/213683-listview-imagelist-for-groupheader-lvsil_groupheader ; From Nine (base code of mLipok) #include <GUIConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> ;~ Global Const $LVNI_SAMEGROUPONLY = 0x0080 ;~ Global Const $LVSIL_GROUPHEADER = 3 Global Const $tagLVGROUPEx = _ "uint cbSize;" & _ "uint mask;" & _ "ptr pszHeader;" & _ "int cchHeader;" & _ "ptr pszFooter;" & _ "int cchFooter;" & _ "int iGroupId;" & _ "uint stateMask;" & _ "uint state;" & _ "uint uAlign;" & _ "ptr pszSubtitle;" & _ "uint cchSubtitle;" & _ "ptr pszTask;" & _ "uint cchTask;" & _ "ptr pszDescriptionTop;" & _ "uint cchDescriptionTop;" & _ "ptr pszDescriptionBottom;" & _ "uint cchDescriptionBottom;" & _ "int iTitleImage;" & _ "int iExtendedImage;" & _ "int iFirstItem;" & _ "uint cItems;" & _ "ptr pszSubsetTitle;" & _ "uint cchSubsetTitle" Global $tInfo = DllStructCreate("dword cbSize;dword dwMajorVersion;dword dwMinorVersion;dword dwBuildNumber;dword dwPlatformID;dword dwFlags;uint64 ullVersion;") $tInfo.cbSize = DllStructGetSize($tInfo) DllCall("ComCtl32.dll", "long", "DllGetVersion", "struct*", $tInfo) If $tInfo.dwMajorVersion < 6 Then Exit ConsoleWrite("You need version 6 or higher" & @CRLF) Example() Func Example() Local $hGUI = GUICreate("GroupHeaderImageList", 500, 300) #forceref $hGUI Local $idListView = GUICtrlCreateListView("Name|Value", 10, 10, 480, 250) Local $hListView = GUICtrlGetHandle($idListView) _GUICtrlListView_EnableGroupView($hListView) _GUICtrlListView_InsertGroup($hListView, -1, 101, 'Group A') Local $iItem0 = _GUICtrlListView_AddItem($hListView, "Item 0") _GUICtrlListView_AddSubItem($hListView, $iItem0, "123", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem0, 101) Local $iItem1 = _GUICtrlListView_AddItem($hListView, "Item 1") _GUICtrlListView_AddSubItem($hListView, $iItem1, "234", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem1, 101) #Region ; Nine code Local $hImageList = _GUIImageList_Create(16, 16, 5, 3) _GUIImageList_AddIcon($hImageList, @SystemDir & "\shell32.dll", 110) _SendMessage($hListView, $LVM_SETIMAGELIST, $LVSIL_GROUPHEADER, $hImageList) Local $sHeader = "Group B" Local $tText = DllStructCreate("wchar[" & StringLen($sHeader) + 1 & "]") DllStructSetData($tText, 1, $sHeader) Local $tGroup_template = DllStructCreate($tagLVGROUPEx) Local $tGroup = $tGroup_template $tGroup.cbSize = DllStructGetSize($tGroup) $tGroup.mask = BitOR($LVGF_HEADER, $LVGF_GROUPID, $LVGF_TITLEIMAGE) $tGroup.pszHeader = DllStructGetPtr($tText) $tGroup.cchHeader = StringLen($sHeader) $tGroup.iGroupId = 102 $tGroup.iTitleImage = 0 _SendMessage($hListView, $LVM_INSERTGROUP, -1, DllStructGetPtr($tGroup)) Local $iItem2 = _GUICtrlListView_AddItem($hListView, "Item 2") _GUICtrlListView_AddSubItem($hListView, $iItem2, "456", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem2, 102) ConsoleWrite("- $iItem2=" & $iItem2 & @CRLF) Local $iItem3 = _GUICtrlListView_AddItem($hListView, "Item 3") _GUICtrlListView_AddSubItem($hListView, $iItem3, "567", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem3, 102) ConsoleWrite("- $iItem3=" & $iItem3 & @CRLF) Local $iItem4 = _GUICtrlListView_AddItem($hListView, "Item 4") _GUICtrlListView_AddSubItem($hListView, $iItem4, "678", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem4, 102) ConsoleWrite("- $iItem4=" & $iItem4 & @CRLF) #EndRegion ; Nine code _GUICtrlListView_InsertGroup($hListView, -1, 103, 'Group C') Local $iItem5 = _GUICtrlListView_AddItem($hListView, "Item 5") _GUICtrlListView_AddSubItem($hListView, $iItem5, "9a", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem5, 103) Local $iItem6 = _GUICtrlListView_AddItem($hListView, "Item 6") _GUICtrlListView_AddSubItem($hListView, $iItem6, "9b", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem6, 103) ConsoleWrite("_GetGroupFirstItem() = " & _GetGroupFirstItem($hListView, 102) & @CRLF) ConsoleWrite("_GetGroupItemsCount() = " & _GetGroupItemsCount($hListView, 102) & @CRLF) _GetGroupAllItems($hListView, 102) GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd EndFunc ;==>Example Func _GetGroupAllItems($hListView, $iGroupID) Local $iFirstItem = _GetGroupFirstItem($hListView, $iGroupID) ConsoleWrite("+ $iFirstItem=" & $iFirstItem & @CRLF) ;~ For $IDX = $iFirstItem To $iFirstItem Local $iCheckItem = $iFirstItem, $iNextItem While 1 $iNextItem = _GetGroupNextItem($hListView, $iCheckItem) ;~ $iNextItem = _GUICtrlListView_GetNextItem_mod($hListView, $iCheckItem, 2, 16) ConsoleWrite("+ $iNextItem=" & $iNextItem & @CRLF) If $iNextItem = -1 Then ExitLoop $iCheckItem = $iNextItem Sleep(10) WEnd EndFunc ;==>_GetGroupAllItems Func _GetGroupNextItem($hListView, $iItemIndex) Local $iGroup = _GUICtrlListView_GetGroupIndexByItemIndex($hListView, $iItemIndex, $iGroup) ; https://learn.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-lvitemindex Local Const $tagLVITEMINDEX = "int iItem;int iGroup" Local $tIndex = DllStructCreate($tagLVITEMINDEX) $tIndex.iItem = $iItemIndex $tIndex.iGroup = $iGroup ConsoleWrite("- $iGroup=" & $iGroup & @CRLF) _SendMessage( _ $hListView, _ $LVM_GETNEXTITEMINDEX, _ DllStructGetPtr($tIndex), _ $LVNI_SAMEGROUPONLY) Return $tIndex.iItem EndFunc ;==>_GetGroupNextItem Func _GetGroupFirstItem($hListView, $iGroupID) Local $t = DllStructCreate($tagLVGROUPEx) $t.cbSize = DllStructGetSize($t) ; IMPORTANT: request iFirstItem $t.mask = $LVGF_ITEMS _SendMessage($hListView, $LVM_GETGROUPINFO, $iGroupID, DllStructGetPtr($t)) Return $t.iFirstItem EndFunc ;==>_GetGroupFirstItem Func _GetGroupItemsCount($hListView, $iGroupID) Local $t = DllStructCreate($tagLVGROUPEx) $t.cbSize = DllStructGetSize($t) ; IMPORTANT: request BOTH fields $t.mask = $LVGF_ITEMS _SendMessage($hListView, $LVM_GETGROUPINFO, $iGroupID, DllStructGetPtr($t)) Return $t.cItems EndFunc ;==>_GetGroupItemsCount Func _GUICtrlListView_GetNextItem_mod($hWnd, $iStart = -1, $iSearch = 0, $iState = 8) Local $aSearch[5] = [$LVNI_ALL, $LVNI_ABOVE, $LVNI_BELOW, $LVNI_TOLEFT, $LVNI_TORIGHT] Local $iFlags = $aSearch[$iSearch] If BitAND($iState, 1) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_CUT) If BitAND($iState, 2) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_DROPHILITED) If BitAND($iState, 4) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_FOCUSED) If BitAND($iState, 8) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_SELECTED) If BitAND($iState, 16) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_SAMEGROUPONLY) If IsHWnd($hWnd) Then Return _SendMessage($hWnd, $LVM_GETNEXTITEM, $iStart, $iFlags) Else Return GUICtrlSendMsg($hWnd, $LVM_GETNEXTITEM, $iStart, $iFlags) EndIf EndFunc ;==>_GUICtrlListView_GetNextItem_mod Func _GUICtrlListView_GetGroupIndexByItemIndex($hWnd, $iItem) ;https://www.autoitscript.com/forum/topic/213679-listview-get-igroupid-and-igroup-for-listviewitem/#findComment-1552392 Local $iGroupID = _GUICtrlListView_GetItemGroupID($hWnd, $iItem) Return _GUICtrlListView_GetGroupIndexByGroupID($hWnd, $iGroupID) EndFunc ;==>_GUICtrlListView_GetGroupIndexByItemIndex Func _GUICtrlListView_GetGroupIndexByGroupID($hWnd, $iGroupID) ;https://www.autoitscript.com/forum/topic/213679-listview-get-igroupid-and-igroup-for-listviewitem/#findComment-1552392 Local $iMaxIndex = _GUICtrlListView_GetGroupCount($hWnd) - 1 Local $aInfo For $i = 0 To $iMaxIndex $aInfo = _GUICtrlListView_GetGroupInfoByIndex($hWnd, $i) If $aInfo[2] = $iGroupID Then Return $i Next Return SetError(1, 0, -1) EndFunc ;==>_GUICtrlListView_GetGroupIndexByGroupID This both function works: _GetGroupItemsCount() and _GetGroupFirstItem() but I still have problems with: Func _GetGroupNextItem($hListView, $iItemIndex) Local $iGroup = _GUICtrlListView_GetGroupIndexByItemIndex($hListView, $iItemIndex, $iGroup) ; https://learn.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-lvitemindex Local Const $tagLVITEMINDEX = "int iItem;int iGroup" Local $tIndex = DllStructCreate($tagLVITEMINDEX) $tIndex.iItem = $iItemIndex $tIndex.iGroup = $iGroup ConsoleWrite("- $iGroup=" & $iGroup & @CRLF) _SendMessage( _ $hListView, _ $LVM_GETNEXTITEMINDEX, _ DllStructGetPtr($tIndex), _ $LVNI_SAMEGROUPONLY) Return $tIndex.iItem EndFunc ;==>_GetGroupNextItem -
ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER )
mLipok replied to mLipok's topic in AutoIt GUI Help and Support
When I talked to AI then it talks that not only ✔ iTitleImage ✔ LVSIL_GROUPHEADER should works, but also this following one ✔ iFirstItem ✔ cItems ✔ LVNI_SAMEGROUPONLY I already get it to work with: ✔ iFirstItem ✔ cItems But still have some issues with: ✔ LVNI_SAMEGROUPONLY So would you be so nice and take a look also on: ListView LVM_GETNEXTITEM + LVNI_SAMEGROUPONLY ? -
ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER )
mLipok replied to mLipok's topic in AutoIt GUI Help and Support
It works fine. Big Thanks. -
mLipok reacted to a post in a topic:
ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER )
-
ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER )
mLipok replied to mLipok's topic in AutoIt GUI Help and Support
;~ https://www.autoitscript.com/forum/topic/213683-listview-imagelist-for-groupheader-lvsil_groupheader #include <GUIConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> #include <WinAPIGdi.au3> Global Const $LVSIL_GROUPHEADER = 2 _Example() Func _Example() Local $hGUI = GUICreate("GroupHeaderImageList", 500, 300) #forceref $hGUI Local $idListView = GUICtrlCreateListView("Name|Value", 10, 10, 480, 250) Local $hListView = GUICtrlGetHandle($idListView) ; Enable group view _SendMessage($hListView, $LVM_ENABLEGROUPVIEW, True, 0) ; ===================================================== ; Create ImageList ; ===================================================== Local $hImageList = _GUIImageList_Create(16, 16) Local $hIcon = _WinAPI_LoadIcon(0, $IDI_INFORMATION) ; Add icon to ImageList _GUIImageList_AddIcon($hImageList, $hIcon) ; ===================================================== ; Set Group Header ImageList ; ===================================================== ListView_SetGroupHeaderImageList($hListView, $hImageList) ; ===================================================== ; Get Group Header ImageList ; ===================================================== Local $hReturned = ListView_GetGroupHeaderImageList($hListView) ConsoleWrite("Original : " & $hImageList & @CRLF) ConsoleWrite("Returned : " & "0x" & Hex($hReturned) & @CRLF) ; ===================================================== ; Create group ; ===================================================== Local $tagLVGROUP = _ "uint cbSize;" & _ "uint mask;" & _ "ptr pszHeader;" & _ "int cchHeader;" & _ "ptr pszFooter;" & _ "int cchFooter;" & _ "int iGroupId;" & _ "uint stateMask;" & _ "uint state;" & _ "uint uAlign;" & _ "ptr pszSubtitle;" & _ "uint cchSubtitle;" & _ "ptr pszTask;" & _ "uint cchTask;" & _ "ptr pszDescriptionTop;" & _ "uint cchDescriptionTop;" & _ "ptr pszDescriptionBottom;" & _ "uint cchDescriptionBottom;" & _ "int iTitleImage;" & _ "int iExtendedImage;" & _ "int iFirstItem;" & _ "uint cItems;" & _ "ptr pszSubsetTitle;" & _ "uint cchSubsetTitle" Local $sHeader = "Group A" Local $tText = DllStructCreate("wchar[" & StringLen($sHeader) + 1 & "]") DllStructSetData($tText, 1, $sHeader) Local $tGroup = DllStructCreate($tagLVGROUP) DllStructSetData($tGroup, "cbSize", DllStructGetSize($tGroup)) DllStructSetData($tGroup, "mask", _ BitOR($LVGF_HEADER, $LVGF_GROUPID, $LVGF_TITLEIMAGE)) DllStructSetData($tGroup, "pszHeader", DllStructGetPtr($tText)) DllStructSetData($tGroup, "cchHeader", StringLen($sHeader)) DllStructSetData($tGroup, "iGroupId", 1) ; Use image index 0 DllStructSetData($tGroup, "iTitleImage", 0) ; Insert group _SendMessage($hListView, $LVM_INSERTGROUP, -1, DllStructGetPtr($tGroup)) ; ===================================================== ; Add item into group ; ===================================================== Local $iItem = _GUICtrlListView_AddItem($hListView, "Item 1") _GUICtrlListView_AddSubItem($hListView, $iItem, "123", 1) _GUICtrlListView_SetItemGroupID($hListView, $iItem, 1) GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd EndFunc ;==>_Example ; #FUNCTION# =================================================================== ; Name...........: ListView_SetGroupHeaderImageList ; Description ...: Sets the ImageList used by group headers. ; ============================================================================== Func ListView_SetGroupHeaderImageList($hListView, $hImageList) Return _SendMessage( _ $hListView, _ $LVM_SETIMAGELIST, _ $LVSIL_GROUPHEADER, _ $hImageList) EndFunc ;==>ListView_SetGroupHeaderImageList ; #FUNCTION# =================================================================== ; Name...........: ListView_GetGroupHeaderImageList ; Description ...: Gets the ImageList used by group headers. ; ============================================================================== Func ListView_GetGroupHeaderImageList($hListView) Return _SendMessage( _ $hListView, _ $LVM_GETIMAGELIST, _ $LVSIL_GROUPHEADER, _ 0) EndFunc ;==>ListView_GetGroupHeaderImageList Still not works well. It sets and returns: But no images are displayed. -
mLipok reacted to a post in a topic:
ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER )
-
mLipok reacted to a post in a topic:
ListView + ImageList for GroupHeader ( LVSIL_GROUPHEADER )
-
WildByDesign reacted to a post in a topic:
How can you CUSTOMDRAW ListView header by State? (CDIS_HOT, etc.)
-
12 years too late Unless you have code to unlock this library ?
-
ibay770 reacted to a post in a topic:
Debenu Quick PDF Library - UDF
-
WildByDesign reacted to a post in a topic:
GUIDarkTheme UDF
-
Thanks to you both for answers. Ok. do you mean for example: __DM_WinAPI_GetDeviceCaps() which is currently in UDF as _WinAPI_GetDeviceCaps() and acts exactly the same way ? or __DM_WinAPI_GetTextExtentPoint32() >> _WinAPI_GetTextExtentPoint32()
-
As long as you remember... please add standard header generated by SciTE (CTRL + ALT + H) to each Func __DM_WinAPI_ and fullfill the ; Author ........: ????? information You can keep all others information not changed (as SciTE generate them).
-
Please take a look on: https://www.autoitscript.com/trac/autoit/ticket/4095 as you are creator of ths function I would like to ask you to give your opinion on that sugestion/feature request to the UDF.
-
Help File/Documentation Issues. (Discussion Only)
mLipok replied to guinness's topic in AutoIt Technical Discussion
I would like to politely remind you about this problem.