テキストボックスの中に色をつける


神酒  2003-10-26 09:52:54  No: 109431  IP: [192.*.*.*]

テキストボックスに表示される文字の一部に色を付けることは可能ですか?

1234567890とあるうち456だけ赤くするとかそんな感じです

編集 削除
いちゆ  2003-10-26 14:00:29  No: 109432  IP: [192.*.*.*]

リッチテキストボックスなら可能です。

編集 削除
Mr.アンダーソン  2003-10-28 12:00:17  No: 109433  IP: [192.*.*.*]

MsgTextBox.SelStart = 0
MsgTextBox.SelLength = 0
MsgTextBox.SelColor = RGB(0, 0, 0)
MsgTextBox.SelText = "789"

MsgTextBox.SelStart = 0
MsgTextBox.SelLength = 0
MsgTextBox.SelColor = RGB(255, 0, 0)
MsgTextBox.SelText = "456"

MsgTextBox.SelStart = 0
MsgTextBox.SelLength = 0
MsgTextBox.SelColor = RGB(0, 0, 0)
MsgTextBox.SelText = "789"

こんな感じでできるハズ。
リッチテキストの出し方とかは、ログを検索してみてください。

編集 削除