Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 13 JAN 2008 02:16:53PM Rod B Morris wrote:

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


At 14 JAN 2008 07:26PM Colin Rule wrote:

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-]FOCUS
SELPOS=@FOCUS-]PREVSELPOS
CALL SEND_MESSAGE(FOCUS,"COLOR_BY_POS",SELPOS,SELPOS,0)
SELPOS=@FOCUS-]SELPOS
CALL 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


At 15 JAN 2008 12:48PM Rod B Morris wrote:

Thanks Colin! Works great!

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/ce83874ec6801d18852573cf0069eac8.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1