Application Icon/ja

From Lazarus wiki
Revision as of 15:21, 17 July 2008 by Saeka-jp (talk | contribs) (New page: {{Application Icon}} {{Japanese Menu}} アプリケーションアイコンは通常アプリケーションのメインウインドウに表示されます。Application.Iconを設定...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) español (es) 日本語 (ja) português (pt)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報

アプリケーションアイコンは通常アプリケーションのメインウインドウに表示されます。Application.Iconを設定することで制御することができます。

実行ファイルのアイコンを変更するには、OSに依存したテクニックを使う必要があります。

Windowsでアプリケーションアイコンを設定する

1. 例えば"project.rc"と名前をつけて、次のようなアイコンを含む新しいリソースファイルを作ります。:

  MAINICON ICON "editor.ico" 

2. プロジェクトの *.lprファイルに次の命令を入れます。

  {$R project.rc} 

version 0.9.24 以上で動作します。

Mac OS Xでアプリケーションアイコンを設定する

Under Mac OS X it is necessary to set an icon for the Application Bundle. This is done by adding a field to the Info.plist file, like this:

  <key>CFBundleIconFile</key>
  <string>iconfile.icns</string>

Where iconfile.icns is located inside MyBundle.app/Contents/Resources

You can find instructions to create an icns file here

Linuxでアプリケーションアイコンを設定する

Under Linux application icons are located in special directories which are different on each Window Manager. The structure inside that directory, however, is standarized and described on the Icon Theme Specification

K Desktop Environment (KDE)でアプリケーションアイコンを設定する

You can find the directory for application icons for use by all users and for each user using the command:

kde-config --path icon

This should print a list of colon-separated paths to stdout.

GNOMEでアプリケーションアイコンを設定する

You can find the directory for application icons for use by all users and for each user using the command:

gnome-config --datadir

This should print a path to stdout, inside which is found a directory called pixmaps that attends to the Icon Theme Specification.