![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
If you don't want the user to use the listview you can hide the listview from the user.
|
|
![]() |
|
![]() |
|
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.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
deactivate / change colour of a listview item
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.