|
Post by nsbrown on Apr 4, 2022 3:08:44 GMT -5
Thanks, I know that LB directly can not do this. But do you have an example of how using API, LB you can control background color in a specific row?
|
|
|
Post by Walt Decker on Apr 4, 2022 8:51:22 GMT -5
Thanks, I know that LB directly can not do this. But do you have an example of how using API, LB you can control background color in a specific row? It can NOT BE DONE in LB using API or any other method. It takes a DLL that is capable of intercepting the WM_PAINT message and coloring the specified rows the specified colors.
|
|
|
Post by Rod on Apr 4, 2022 9:22:10 GMT -5
If you are committed to a listview control you are committed and it appears difficult. However it is perfectly possible to present data via a graphicbox. The technique holds the data in a two dimension array and simply draws the text boxes. Since the drawing is updated regularly it would be easy to color a row or column or cell and edit or amend the text. This thread shows the basic technique which relocates a single textbox to take info at any cell. It would need tweaking to alter row column or cell background color. But you would need to consider whether you are comfortable moving away from a listview solution. libertybasiccom.proboards.com/thread/1228/spreadsheet-lb
|
|