procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin
If (State = gdSelected) then ...
end;
Why ?
> If (State = gdSelected) then ...
TGridDrawState is a set. To test for the dgSelected state, use the in
operator:
if gdSelected in State then ...
---
Yorai Aminov (TeamB)
http://ourworld.compuserve.com/homepages/yaminov
(TeamB cannot answer questions received via email.
To contact me for any other reason remove nospam from my address)