ToolSvgButton は、Skia4Delphi の SVG 描画コンポーネントを利用して
「ツールバー風のアイコンボタン」を簡単に構築するための
VCL 専用コンポーネントユニットです。
- SVG(TSkSvg)を安全にコピーして内部描画
- Windows 標準に近いホバー/押下/無効化表現
- TToolSvgButtonList によるツールバー管理
- セパレーター(区切り)も標準対応
- Clear / Destroy による一括破棄
- ボタンとセパレーターは完全分離管理
procedure TFormSample.FormShow(Sender: TObject);
begin
FToolButtons.Clear;
FToolButtons.AddButton(SkSvg1, '1の画像');
FToolButtons.AddSeparator(32);
FToolButtons.AddButton(SkSvg2, '2の画像');
end;SVG とキャプションを持つ 1 ボタンの実装。
ホバー、押下、無効化などの状態を内部で自動反映します。
複数のボタンを左寄せ整列し、
ボタン・セパレーターを独立管理するツールバー構築クラス。
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
追加機能や改善案があればお気軽にどうぞ。