掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
ボタンの形を変えるには? (ID:15186)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
>ですが,あのフォーカスがあるときの破線は確かにちょっと・・・。 // janTriDownButtonのFocus破線の改造例 procedure TjanTriDownButton.CNDrawItem(var Msg: TWMDrawItem); var ..... poly: array[0..3] of Tpoint; polF: array[0..3] of Tpoint; // 追加 procedure SetPoly; begin ..... // 以下の4行を追加 polF[0]:=Point(Rect.left+5, Rect.top+2); polF[1]:=Point(Rect.right-8, Rect.top+2); polF[2]:=Point(Rect.left+x2, Rect.bottom-6); polF[3]:=polF[0]; end; begin ..... ..... if IsFocused or OdsFocus or ActionFocus then //DrawFocusRect (Rect); // これを削除 // 以下の7行を追加 begin Brush.Color := clBtnFace; Pen.Color := clBlack; Pen.Width := 1; Pen.Style := psDot; PolyLine(PolF); end; .....
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.