線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1296
推到 Plurk!
推到 Facebook!

關於RICHEDIT

答題得分者是:fusung
G_D
一般會員


發表:6
回覆:5
積分:2
註冊:2004-12-19

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-12-01 01:34:48 IP:211.76.xxx.xxx 未訂閱
假如我現在要對richedit的內容做刪除 而刪除的動作用一個button去執行 但是我在把我要的那一行刪除之後會留下空白 11111111 11111111 ---->刪除的地方 22222222 33333333 而222222及3333333這要怎麼讓他往上移呢?
fusung
中階會員


發表:26
回覆:169
積分:99
註冊:2003-11-25

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-12-01 02:47:38 IP:140.114.xxx.xxx 未訂閱
哈囉, G_D    試試看下面的方法. < class="code"> void __fastcall TForm1::RichEdit1Change(TObject *Sender) { RichEdit1->Lines->Delete(RichEdit1->CaretPos.y); } The first step toward proving things for yourself is to understand how others have done it before!
------


The first step toward proving things for yourself is to understand how others have done it before!

G_D
一般會員


發表:6
回覆:5
積分:2
註冊:2004-12-19

發送簡訊給我
#3 引用回覆 回覆 發表時間:2005-12-01 04:44:13 IP:211.76.xxx.xxx 未訂閱
那如果我想要知道我想要刪除的字串是第幾個LINE 該如何取得呢 111111 222222------>假如我要刪除222222 要如何知道它是位於第2行呢 333333 444444
fusung
中階會員


發表:26
回覆:169
積分:99
註冊:2003-11-25

發送簡訊給我
#4 引用回覆 回覆 發表時間:2005-12-01 10:14:31 IP:61.222.xxx.xxx 未訂閱
 
int ind;
ind = RichEdit1->Lines->IndexOf("xxxxxxxx"); 
The first step toward proving things for yourself is to understand how others have done it before!
------


The first step toward proving things for yourself is to understand how others have done it before!

系統時間:2024-04-25 6:45:54
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!