找回密码
 加入
搜索
楼主: cqboyqx

[网络通信] 学弄了一个ListView表增行的效果,就是有点瑕疵,这种情况有没有办法处理?[已解决]

[复制链接]
 楼主| 发表于 2020-5-12 12:16:47 | 显示全部楼层
kk_lee69 发表于 2020-5-12 11:58
建議 搜尋一下  千萬數據 不卡頓的做法

不是卡顿问题    是输入数据的时候  列表界面闪跳
发表于 2020-5-12 12:16:51 | 显示全部楼层
本帖最后由 chzj589 于 2020-5-12 12:18 编辑
cqboyqx 发表于 2020-5-12 11:38
大佬,列表扩展样式加了$WS_EX_CLIENTEDGE确实能处理闪跳问题   但是加了后出现新的问题了   ...

是加分页GUICtrlCreateTab的问题。
把它注释掉
;$Tab1 = GUICtrlCreateTab(5, 5, 770, 609)
;$TabSheet1 = GUICtrlCreateTabItem("tab1")
;GuiCtrlSetState(-1,$GUI_ONTOP)
;GUICtrlCreateTabItem("")
有时不要怕手酸,多动手就能找出问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2020-5-12 12:25:22 | 显示全部楼层
本帖最后由 cqboyqx 于 2020-5-12 12:31 编辑
chzj589 发表于 2020-5-12 12:16
是加分页GUICtrlCreateTab的问题。
把它注释掉
;$Tab1 = GUICtrlCreateTab(5, 5, 770, 609

但即使注释掉了还是如此


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2020-5-12 12:43:09 | 显示全部楼层
cqboyqx 发表于 2020-5-12 12:25
但即使注释掉了还是如此

那为什么我就不会闪。

#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>
Global $hListView
_Main()
Func _Main()
        $Form1 = GUICreate("Form1", 780, 640)
        $Pic1 = GUICtrlCreatePic(@ScriptDir & "\LOGObjt.bmp", 5, 5, 770, 620)
        GUICtrlSetState(-1, $GUI_DISABLE)
        $hListView = GUICtrlCreateListView("cos_text1|cos_text2|cos_text3|cos_text4|cos_text5|cos_text6|cos_text7|cos_text8|cos_text9|", 8, 65, 752, 52, $LVS_EX_DOUBLEBUFFER, $WS_EX_CLIENTEDGE)
        GUISetState()
        ; 循环直到用户退出
        tianjia()
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>_Main
Func tianjia()
        Local $iI = 0, $y = 15
        Local $aItems[$y][9]
        For $x = 1 To $y;-1
                $aItems[$iI][0] = 'text' & $x
                $aItems[$iI][1] = 'text' & $x
                $aItems[$iI][2] = 'text' & $x
                $aItems[$iI][3] = 'text' & $x
                $aItems[$iI][4] = 'text' & $x
                $aItems[$iI][5] = 'text' & $x
                $aItems[$iI][6] = 'text' & $x
                $aItems[$iI][7] = 'text' & $x
                $aItems[$iI][8] = 'text' & $x
                GUICtrlCreateListViewItem($aItems[$iI][0] & "|" & $aItems[$iI][1] & "|" & $aItems[$iI][2] & "|" & $aItems[$iI][3] & "|" & $aItems[$iI][4] & "|" & $aItems[$iI][5] & "|" & $aItems[$iI][6] & "|" & $aItems[$iI][7] & "|" & $aItems[$iI][8], $hListView)
                Sleep(200)
                $iI += 1
                $iY = _GUICtrlListView_ApproximateViewHeight($hListView)
                _WinAPI_SetWindowPos(GUICtrlGetHandle($hListView), 0, 8, 65, 752, $iY + 4, $SWP_NOZORDER)
        Next
        GUICtrlSetBkColor($hListView, $CLR_MONEYGREEN)
        _GUICtrlListView_SetBkColor($hListView, 14675183)
EndFunc   ;==>tianjia
 楼主| 发表于 2020-5-12 17:33:50 | 显示全部楼层
chzj589 发表于 2020-5-12 12:43
那为什么我就不会闪。
[au3]
#include

谢谢!谢谢!处理后好多了
发表于 2020-5-12 21:39:03 | 显示全部楼层
学习一下学习一下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 16:59 , Processed in 0.064220 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表