I have been able to get a multi-column edit table to behave like an AMV in AREV in all respects but one. When leaving the table the last row selected remains highlighted, ie blue in color. How can I get that row color to "turn off" when leaving the table? I have tried every possible combination of COLOR_BY_POS I can think of.
Thanks,
Rod
On the properties screen for the table, turn OFF the Permit Row Selection check box, you can then control the colours of the rows/columns or cells as you wish, including on lostfocus.
There are implications though which may affect your application, so you should try it first.
I use the following code to change colours as I move
FOCUS=@@WINDOW-]FOCUSSELPOS=@FOCUS-]PREVSELPOSCALL SEND_MESSAGE(FOCUS,"COLOR_BY_POS",SELPOS,SELPOS,0)SELPOS=@FOCUS-]SELPOSCALL SEND_MESSAGE(FOCUS,"COLOR_BY_POS",SELPOS,SELPOS,CELL_COLOUR)Alternatively, to clear the selection focus for the line which is blue, you can just extract and replace the table contents, such as on lostfocus do:
.TABLE-]ARRAY=.TABLE-]ARRAY
Colin
Thanks Colin! Works great!