Ver Mensaje Individual
  #8  
Antiguo 31-01-2006
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 18.293
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por jam888
¿ahora como puedo cambiarle el tamaño?
Si te vale hacerlo mediante teclado es bastante sencillo; Ésto te puede servir de guía (evento OnKeyDown del Edit):

Código Delphi [-]
var
  edt:TEdit;
begin

  if not (Sender is TEdit) then begin
    Exit;
  end
  else begin
    edt := TEdit(Sender);
  end;

  if (key = VK_DOWN) and (Shift = [ssCtrl]) then begin
    edt.Height := edt.Height + 5;
  end;

  if (key = VK_UP) and (Shift = [ssCtrl]) then begin
    edt.Height := edt.Height - 5;
  end;

  if (key = VK_LEFT) and (Shift = [ssCtrl]) then begin
    edt.Width := edt.Width - 5;
  end;

  if (key = VK_RIGHT) and (Shift = [ssCtrl]) then begin
    edt.Width := edt.Width + 5;
  end;

Utiliza el CTRL + las flechas para modificar el tamaño.
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita