LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
CVI-User

Three ideas for list box control

Status: New

How about...

 

- If control mode is indicator set ATTR_HILITE_CURRENT_ITEM to 0 per default

 

- Provide a code to set the background color of the whole line (from "here" on) instead of just where text is

This would make it far more easy to color alternating lines differently, now you have to append every text with lots of spaces to fake it if you use tabs

 

- Autoscroll option

Always jump to the last line if a new last one is inserted. Useful for logging purposes

 

-----------------------
/* Nothing past this point should fail if the code is working as intended */
2 Comments
RobertoBozzolo
Proven Zealot

Absolute kudos for the second item!

In my opinion the other two should be left to programmer's choice by adding the corresponding chekboxes (and attributes too) to the edit control dialog.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
RobertoBozzolo
Proven Zealot

Thinking about your wish list, it seems to me that using a tree control instead of a list can be of some help: take a look at this sample project posted by jared to understand how a tree can be customized to look like a list. Changing the background of a tree item automatically colors the entire row as you are asking.

Filling a tree, especially with columns, is a bit harder than using a listbox but this can be a workaround you can look at.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?