掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
StringGridが表示されたときクリックするまで最初のセルが紺色反転しているのをプログラムで消したい (ID:31967)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
こんな感じ?外してたらごめんなさい。 procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState); begin with TStringGrid(Sender) do begin if not (gdFixed in State) then Canvas.Brush.Color := clWindow; if Focused then if gdSelected in State then Canvas.Brush.Color := clHighlight; Canvas.FillRect(Rect); end; end;
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.