5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows 11 の素の状態では .rtf ファイルが開けないので Delphi でワードパッドを作る

5
Last updated at Posted at 2026-04-24

はじめに

Windows 11 は素の状態だと .rtf ファイルが開けんのかい!! 1

image.png

Delphi のドキュメントは最新版でも一部 RTF なんだが (EULA)。

image.png

まぁ、オンラインなら PDF で読めるのだけれども。

Delphi でワードパッドを作る

ぶっちゃけ、イチから作る必要はないのです。Delphi のサンプルプログラムにワードパッドみたいなのが存在します。

Delphi のサンプルフォルダはデフォルトで %PUBLIC%\Documents\Embarcadero\Studio\xx.x\Samples にあります (xx.x は BDS バージョンです。こちらから調べてください)。

サンプルプログラムをインストールしていなければ、[ツール|機能の管理...] から 機能マネージャ を開いてインストールします。

image.png

Delphi 13 Florence ですと Object Pascal > VCL > RichEdit にサンプルプログラムがありますので、richedit.dproj を開きます。

image.png

プロジェクトファイルを開くとこのような感じになるので [プロジェクト | ビルド] (〔Ctrl〕+〔F9〕) でそのままビルドします。 

image.png

はい、出来上がり。

image.png

image.png

コマンドラインパラメータにも対応しているので、

richedit <ファイル名>

みたいな起動もできます。つまり、*.rtf を関連付けしても大丈夫です。

おわりに

Delphi のおかげで九死に一生を得ました (?)。

もちろん Community Edition にもサンプルはあるので、ワードパッドが必要な方ビルドしてみてください。

メモ帳? それはもう作りました。

  1. 24H2 以降には付属しないようです。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?