I have a semi-dynamically created window ( and use PowerBuilder 10.5 ). Now there are a couple of columns which can have different colours and I want to see those colours when selecting a row. However I don't know how to deselect these columns and have the first couple of columns remain selected. The highlight function in our application just does a dw.selectrow( x, true ).
Regards, Marinus
I don't think you'll get what you want using selectrow
. If you don't need multiple selections you could change the background of the current row with an expression in the datawindow. If you want some columns to stay normal you could do that with a rectangle behind the ones you want to highlight instead of changing the row color. If you need multiple rows highlighted you will have to simulate multi-select by adding a dummy column and using that to control the background, and of course you need to handle the selecting and deselecting in the clicked
event. If you've got code that deals with selected rows you'll have to change them to use the new scheme, for example by checking the value in your dummy column.