ICONICO

Discussion Thread

UniToolbox

Message Thread

Developer ComponentFor WindowsUniToolbox

UniToolbox iconThe 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?
by Panik Tesniyom on Mar 17 2009 8:59pm Reply

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
by Panik on Mar 18 2009 9:11pm Reply

Pls help!! Unitreeview is slow.

Thanks for posting the workaround Panik
by Nico Westerdale on Mar 19 2009 12:29am Reply

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.
by Nico Westerdale on Mar 19 2009 12:13pm Reply

Our Software Stores

IconicoAccurate Design and Development Software

BitsDuJourDiscount Deal Coupons for Windows and Mac Software Apps

Our Software Services

IcoBlogOur Official Blog

© copyright 2004-2024 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use Login