掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
richeditでマイナスのlengthを取得したい (ID:152036)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
procedure TForm1.RichEdit1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begfin SAVE_SelStart := RichEdit1.SelStart; end; procedure TForm1.RichEdit1SelectionChange(Sender: TObject); begin if SAVE_SelStart = RichEdit1.SelStart then begin //右側に移動 end else begin //左側に移動 SelLength = RichEdit1.SelLength * -1 end; end;
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.