Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: deactivate / change colour of a listview item
Topic Summary:
Created On: 4-Dec-2008 12:14
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 4-Dec-2008 12:14
User is offline View Users Profile Print this message


Jochen Dehner

Posts: 13
Joined: 23-Oct-2008

Hi everybody,

is it possible to deactivate single listview items? For some items I'd like to prevent the possibility of setting their checks to true. Up to now I'm using the "void set(DBE listView, void callback(DBE, int))" function. However I'm hoping for a more elegant way

Another question - is it possible to change the text colour of listview items, like using rtf or something?

Cheers,
Jochen
Report this to a Moderator Report this to a Moderator
 4-Dec-2008 12:55
User is offline View Users Profile Print this message


Jochen Dehner

Posts: 13
Joined: 23-Oct-2008

Btw I'm using Doors 8.3 and I like to have visual feedback to see that it's not possible to set a check for an item.
Report this to a Moderator Report this to a Moderator
 12-Dec-2008 13:29
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

Hi,

I don't think you can de-activate them as such, but you could use icons. Have a green icon and a red (or grey) icon for inactive items. You can load your own 32 x 32 pixel files into Icons and use them in your list view.

Hope this helps,

Paul
Report this to a Moderator Report this to a Moderator
 12-Dec-2008 14:04
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

As Paul said, you can't de-activate list view items. Otherwise DOORS would do this itself. What you can do is de-activate any buttons related to the selection of a list view item when one of the items are selected. Use active(DBE) and inactive(DBE). Or when an item is checked, set a callback that checks if its valid. If not, uncheck it. Using Paul's idea of setting an icon for inactive items, this insures people can't check them. Honestly your best bet is just to have invalid choices not be present.

As far as changing text color, sorry. Another thing you can't do.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 15-Dec-2008 13:40
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

If you don't want the user to use the listview you can hide the listview from the user.
Report this to a Moderator Report this to a Moderator
 16-Dec-2008 07:58
User is offline View Users Profile Print this message


Jochen Dehner

Posts: 13
Joined: 23-Oct-2008

Too bad it's not possible, but using icons is a good idea. In combination with the callback method this works quite fine. Thanks for your help guys.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.