掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
STRINNGGRIDの固定列のみフォントを指定するには (ID:30507)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
if (StringGrid1.Col <= StringGrid1.FixedCols) then with StringGrid1 do begin Canvas.Font.Name := 'MS ゴシック'; // ←ここ追加 Canvas.FillRect(Rect); S := Cells[ACol,ARow]; DrawText(Canvas.Handle, Pchar(S), Length(S), Rect, DT_SingleLine or DT_VCenter or DT_Center); end; あとは"固定列"の条件をつけてOKだと思います。 http://www.geocities.co.jp/SiliconValley-SanJose/2560/delphi4/graphics/TFont.htm
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.