Discussion Thread
UniToolbox
Message Thread
The leading control suite for Unicode development in Visual Basic.
Posted in the UniToolbox Forum.
Pls help!! Unitreeview is slow.
I tried to add 8000 records to Unitreeview. It looks somewhat like this
for i = 1 to 8000
strTmp = getKeyname(i)
Unitreeviewa.Nodes.Add(hParent.Key, tvwChild, strTmp, vrd(i), "img1", "img2")
next i
It took me like 20 minutes to finish while it took about 20 seconds on normal Treeview.
Is there any way I can do it faster?
Pls help!! Unitreeview is slow.
I found a work around :D
For the people who have the same problem as me or if you have any issues with UniTreeview.
I just wanna let you know this AMAZING news that the original VB Treeview is one of the controls that DO SUPPORT UNICODE even in VB6!!!!!!!!?!?!?!
What you need to do is
- Using Treeview form Window common control 5.0 instead of common control 6.0.
- Call this command
Private Const CCM_FIRST As Long = &H2000
Private Const TVM_SETUNICODEFORMAT As Long = (CCM_FIRST + 5&)
SendMessage TreeView.hwnd, TVM_SETUNICODEFORMAT, 1, ByVal 0
- Enjoy your unicode experience.
Cheers
Pls help!! Unitreeview is slow.
Thanks for posting the workaround Panik
Pls help!! Unitreeview is slow.
From an example we have timed, for 1000 records with sub-item data ...
... with UniListView loaded using .SubItems() method: ~13 seconds.
... with UniListView loaded using .ListSubItems.Add method: ~6 seconds.
... with UniFlexGrid: ~0.6 seconds.