Print Page | Close Window

ListView SelectedItem

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=12583
Printed Date: 23 November 2024 at 9:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ListView SelectedItem
Posted By: ScottW
Subject: ListView SelectedItem
Date Posted: 31 October 2008 at 12:18pm
I am using the ListView control in report mode. Is there some way to make sure the selected row is highlighted even when the listview doesn't have the focus? In Windows Explorer you still see the highlight in a lighter color when the focus moves away. That's what I expected to happen with this control. The SuiteControls sample can be used to demonstrate this.




Replies:
Posted By: Oleg
Date Posted: 31 October 2008 at 12:51pm
Hi,
 
its HideSelection property.


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


Posted By: ScottW
Date Posted: 31 October 2008 at 1:05pm
Does that actually work? In the suite controls sample app, I tried adding:

ListViewReport.HideSelection = False

and it still is not shown when the control loses the focus. I can't see any difference between the true and false settings on my system.

XP SP3, VB6 SP6.



Posted By: jpbro
Date Posted: 31 October 2008 at 3:54pm
Looks like you can't set the property at runtime...It works when set at design-time (although on my machine the non-focused highlight colour is a very light grey and difficult to notice, but I assume it is using system colors).



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: ScottW
Date Posted: 31 October 2008 at 4:15pm
Ok, confirmed. I also can see it with no problem if I set it at design time. I hope this can be fixed. I really prefer to set control properties in code whenever possible.


Posted By: Oleg
Date Posted: 03 November 2008 at 1:51am
Thanks, will be changed.

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


Posted By: Carlos Rocha
Date Posted: 09 June 2010 at 12:41pm
Hi,

In 13.2.1 still not working for TreeView

-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8


Posted By: Oleg
Date Posted: 14 June 2010 at 4:45am
Hi,

Just tried with our VB sample and don't see problem.

Try add
TreeViewLines.HideSelection = False
in Load even and check if it works for you.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE 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