Example:
1.)All cells in the edittable default to the white color
2.)A single cell color has been changed using the command
x=send_message(control,"color_by_pos",2,3,green$)3.)then i try to change to globally color of column 2 to blue$
x=send_message(control,"color_by_pos",2,0,blue$)4.)every row in column 2 changes to blue except row 3 which is still
green.5.)how do i reset the color attribute in cell (2,3)so that
step#3 works for every row.Nulling the table with set_property(control,"array","") and then
rebuilding works…but my tables are usually larger than
64K and that method is just not practicle as it takes too much
time to rebuild.
The key is to reset the color attribute in the cell so
that it works with the global color change calls for
the entire row or entire column. TX FOR ANY IDEAS….BRIAN
Brian,
It seems there's no similar problem with colouring rows. So reorganize your edit table - switch your rows and columns.
![]()
Seriously, I have no other suggestion than to colour each cell of the column in a loop.
And suggest RevSoft fixes the bug. For a bug it must be? (Unfortunately COLOR_BY_POS isn't supported.)
- Oystein -
Bri-
When you set the color on a row, col basis, you must reset it on a row, col basis. If you set it on a col basis, you must reset it on a col basis. If you set it on a row basis, you need to erset it on a row basis.
Why don't you keep a list of cells you've changed on a cell basis, reset them on a cell basis, and then reset the column on a column basis.
Are you going to Rev U?
Hope it helps-
Mike Ruane
WinWin Solutions Inc.
WWW.WinWinSol.Com
mike,
i take it that resetting the cell means doing an
x=send_message(control,"color_by_pos",colx,rowx,"")is that correct using a null for color resets it ?
on site these days. rev u may still happen but on short notice
tx. bri….