Subject | DrawCell method query |
---|---|
Author | Alan McDonald |
Post date | 2003-02-04T04:18:57Z |
I want to draw over the top of an IB_Grid cell.
I set the default drawvrfore to true since I want to draw a color rectangle
marker in the cell depending on the value of an invisible field in the
query.
At first I was using
if (IB_Query1.BufferFieldNyName('myfield').AsBoolean='Y') then
Draw the rectangle
This worked at first but now I get AV's since it apears that the buffer does
not have the field in question all the time (when I need it). So I need
another method of accessing the field value of a record on the current grid
row (which is not visible).
I've seen the drawcell code but it only queries the Cell[ARow, ACol] and not
the contents of an invisible field.
Can someone lead me to the answer please?
Alan
I set the default drawvrfore to true since I want to draw a color rectangle
marker in the cell depending on the value of an invisible field in the
query.
At first I was using
if (IB_Query1.BufferFieldNyName('myfield').AsBoolean='Y') then
Draw the rectangle
This worked at first but now I get AV's since it apears that the buffer does
not have the field in question all the time (when I need it). So I need
another method of accessing the field value of a record on the current grid
row (which is not visible).
I've seen the drawcell code but it only queries the Cell[ARow, ACol] and not
the contents of an invisible field.
Can someone lead me to the answer please?
Alan