Ver Mensaje Individual
  #2  
Antiguo 03-07-2007
gabrielkc gabrielkc is offline
Miembro
 
Registrado: jun 2007
Ubicación: Chihuahua Mexico
Posts: 118
Reputación: 17
gabrielkc Va por buen camino
Algo así

Quizá le falte perfeccionarlo pero sería algo así :

EN en evento KeyPress del memo poner:

Código Delphi [-]
procedure TForm1.Memo1KeyPress(Sender: TObject; var Key: Char);
const MAX_LENGTH=15;
var Line:Integer;
begin
 Line := SendMessage(memo1.Handle,EM_LINEFROMCHAR,Memo1.SelStart,0);
 if not (Key in [#13,#8]) then
  if Length(memo1.Lines[LPos])=MAX_LENGTH then
   Key:=#13
end;

No lo he calado........ pero se ve bien

Última edición por dec fecha: 03-07-2007 a las 18:16:11.
Responder Con Cita