Subject RE: [IBO] IB_Grid & changing the selected row color
Author Vahan Yoghoudjian
Hi Bob

You can use the following statements in the OnDrawDataCell event of the Grid



if (gdSelected in State) then begin
myGrid.Canvas.Font.Color := clWhite;
myGrid.Canvas.Brush.Color := clRed;
end

else
myGrid.Canvas.Brush.Color := clWhite;

myGrid.Canvas.FillRect(Rect);




-----Original Message-----
From: Bob Zirbel [mailto:bobz22001@...]
Sent: Tuesday, June 15, 2004 6:18 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] IB_Grid & changing the selected row color


Hi all

Can anyone tell me how to change the currently selected row color
(blue/navy) of an IB_Grid?
I tried the obvious CurrentRowColor property and a dozen other
combinations of settings to no avail.

Any help would be appreciated.

Regards

Bob



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !


Yahoo! Groups Sponsor
ADVERTISEMENT





----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/IBObjects/

b.. To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]