Ver Mensaje Individual
  #2  
Antiguo 03-10-2006
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Prueba con esto:

Código Delphi [-]
var
  Col, Line: Integer;

begin
  Col := RichEdit1.SelStart - RichEdit1.Perform(EM_LINEINDEX, -1, 0);
  Line := RichEdit1.Perform(EM_LINEFROMCHAR, RichEdit1.SelStart, 0);

  StatusBar1.Panels[0].Text := Format('Col: %d', [Col]);
  StatusBar1.Panels[1].Text := Format('Ln: %d', [Line]);
end;

// Saludos
Responder Con Cita