BUG: ListView: ListItems disappear |
Post Reply |
Author | |
Jean
Senior Member Joined: 11 December 2006 Status: Offline Points: 110 |
Post Options
Thanks(0)
Posted: 30 October 2008 at 12:04pm |
ListItems disappear under certain circumstances:
-Open a new project -put a CommandButton and a ListView on the Form1 -use this code:
-start the application and press the button -Item with key 14 is selected and visible: Good! -now increase the height of the form -ListItems disappear and there's no scrollbar This can happen also if you resize the Form/ListView by code! Don't I use the ListView as intended? Another curious behavoir is that the HideSelection-Property is obviously reset if you chance the View-Property. You can check this if you change the order of the two lines in the sample code above. |
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Can't reproduce in 12.1 Beta, so maybe it is fixed?
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I can reproduce it as well. I tried with V12.0.2 and V12.1.0 Beta and both behave the same.
Just click command button and resize form height (list items will be arranged) and eventually will disappear including the scrollbar. As long as the selected item is NOT visible this behaviour will be produced every single time.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
You're right Aaron & Jean, I see the bug now...
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
It looks like you can put ListView1.SelectedItem.EnsureVisible in your Form_Resize event as a workaround (assuming you don't mind the selected item be key visible on resize....this may be a problem in certain situations, so obviously a fix would be the best solution).
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Jean
Senior Member Joined: 11 December 2006 Status: Offline Points: 110 |
Post Options
Thanks(0)
|
Will there be a bug fix?
|
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, Unfortunatelly we can't fix bugs that inside Microsoft code. ListView is based on standard ListView OS control - you can see same problem with ListView from MS controls.
Use EnsureVisible workaround.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |