Print Page | Close Window

Listview Bug and Feature

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18766
Printed Date: 20 April 2024 at 12:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Listview Bug and Feature
Posted By: ahmadgames
Subject: Listview Bug and Feature
Date Posted: 03 August 2011 at 8:33am
Hi,

We started to move to the CJ controls, and when we reach to the ListView, we found two things:

1) BUG: the listview keeps flickering when updates fast, I mean, we have a list view that show Forex Market Watch, and the prices are moving rapidly, in this case, the list view keeps flickering and show as unstable behavior.

2) Missing Feature: The ListViewItem don't have the height property, which is very important for our case, where we develop a way to move a listitem from place to place using the OLEDragDrop, and the calculation need the ListViewItem.Height, and this property can't be found..

Please update.

Thanks.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions



Replies:
Posted By: dentor
Date Posted: 03 August 2011 at 9:08am
Hello,
 
Perhaps you can use .LockRedraw property to avoid flickering.
 
Others missing events for ListView Control: OLEDragDrop, OLEDragOver to drag drop files onto the control.
 
Thanks if you can add them. Wink
 


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP 6


Posted By: ahmadgames
Date Posted: 03 August 2011 at 10:20am
Well, LockRedraw will LOCK the redraw of the component, which means I will not see any updates on the components!
It must not be used in anyway..

Thanks for your help anyway, I hope that we can find a solution for this case.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: dentor
Date Posted: 03 August 2011 at 10:51am
Well, before modifying the ListView with a lot of new lines which can flicker the control, you set :
 
.LockRedraw=True
add the new lines
.LockRedraw=False
 
The Control is refreshing only one time.
 
Of course, the property is always set to False at the end.
  


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0 SP 6


Posted By: ahmadgames
Date Posted: 03 August 2011 at 10:59am
Adding the lines is not the case, the case that it keeps flickering while refreshing the prices in the market watch (list view), since there is a lot of prices, the listview will be shown as flickering, while the original one was not like this.

-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: ahmadgames
Date Posted: 04 August 2011 at 8:31am
I tried to LockRedraw the listview before start the update and then unlock it, but it is the same results, the listview is flickering too much..

Any help?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: ahmadgames
Date Posted: 04 August 2011 at 8:34am
dentor, those events is there in the 15.0.1 version, I can use them normally...

try to update your CodeJock version so you will get them

Regards,


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: Willowmaster
Date Posted: 04 August 2011 at 9:05am
I normally don't recommend using the LockWindowUpdate Api, but you could try that one as a workaround.
 
http://www.ex-designz.net/apidetail.asp?api_id=203 - http://www.ex-designz.net/apidetail.asp?api_id=203


-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: ahmadgames
Date Posted: 04 August 2011 at 11:21am
Hi Willowmaster,

thanks for your link, i think that this is similar to LockRedraw Property in the ListView control by CJ, but i give it a try with no use too,, it is flickering tooo much when updating it many times, while the original listview by MS is not doing this.. and this is not acceptable to be published in our application.

Is there any solution for this? or maybe to update the CodeJock Controls to the latest version?

I hope that some one of the staff reply to this.

Regards.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: ahmadgames
Date Posted: 08 August 2011 at 7:55am
Hi,

Is there any update here :)

can any one help on this.

thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: Oleg
Date Posted: 09 August 2011 at 2:53am
Hello,

Please send email to support with sample that show that "unstable behavior." 
thanks.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ahmadgames
Date Posted: 09 August 2011 at 3:01am
Hi Oleg,

Thanks for the reply.

I will prepare a sample of code to replicate this case.

will send it to support soon.

Thanks.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: Willowmaster
Date Posted: 09 August 2011 at 10:19am
Can you post the sample here too? I'm curious of what you meant exactly.

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: ahmadgames
Date Posted: 10 August 2011 at 6:32am
Hi,
You can download the Listview sample from this link:
http://www.hybrid-solutions.com/lvwflicker.zip

After deep investigation, it seems that coloring the ListSubItem in the Codejock listview causing this flickering, because while I was making the sample, i was doing it step by step to know where the leak is... and I found that the flicker start just after I changed the forecolor of the listsubitems.

The sample contain both MS Listview and CJ Listview, press on the button on the top to change the sample...

Notice the First Column (Name), where the name will flicker in CJ LVW and not in MS LVW.

(Make sure you have CJ 15.0.1).

Thank in advance.

P.S.: Email sent to support@codejock.com too)


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions


Posted By: ahmadgames
Date Posted: 10 August 2011 at 6:34am
Plus, is there any update regarding the Height for the ListViewItem?

Since I can't rearrange the listitems using the OLEDragDrop now, since we use the ListItem.Height in order to know where we drop the item..

Thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net