Howto Use TOpenDialog/ja
Deutsch · English · Español · Français · Polski · Slovenčina · Suomi · Русский · 日本語
TOpenDialog の使い方

簡単な説明:
1. OpenDialogをFormに配置します。(アイコンは実行時には表示されませんので、Form上のどこにおいても大丈夫です。)
Image:Component_Palette_Dialogs.png
(OpenDialogは「Dialog」タブの左端)2. 下記を参考にコーディングします。
var filename : string;
if OpenDialog1.Execute then
begin
filename := OpenDialog1.Filename;
ShowMessage(filename);
end;Executeメソッドによりファイルを開くダイアログが表示されます。 ファイルが選ばれたときは true が返り値となり、キャンセルしたときは false が返り値となります。
Filenameプロパティは、 ドライブ名とパスを含んだファイル名(ファイルへのフルパス)を返り値とします。
関連項目
From the Free Pascal wiki, page "Howto Use TOpenDialog/ja", as it stood on 2020-02-17 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 3 people, 2008–2020
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Miyatakejiro | New page: {{Howto Use TOpenDialog}} {{Japanese Menu}} シンプルで短いガイドライン: 1. OpenDialogのウィジェットをFormに配置する。(不可視のウィジェットであ... | |
| Miyatakejiro | ||
| Miyatakejiro | ||
| Miyatakejiro | ||
| Miyatakejiro | ||
| Miyatakejiro | ||
| Yuichiro Takahashi | ||
| Trev | Fixed syntax highlighting; deleted category included in page template (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
