RichEdit 의 SelectionChange Events 에...
int line = SendMessage (RichEdit1->Handle,
EM_LINEFROMCHAR,
RichEdit1->SelStart,
0) ;
int lineindex = SendMessage (RichEdit1->Handle,
EM_LINEINDEX,
line,
0) ;
StatusBar1->Panels->Items[0]->Text = String (line + 1) + ": "
+ String (RichEdit1->SelStart - lineindex + 1);
라고 치시면 됩니다...
물론 StatusBar Panel 이 있어야 하겠죠..
그리고 쪽은.... 글쎄요...
저도 알고 싶은 부분인데...
|