Ver Mensaje Individual
  #2  
Antiguo 25-06-2008
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
A ver así:

Código Delphi [-]
var
  P: TPoint;

begin
  P := Self.ClientToScreen(ListView1.BoundsRect.TopLeft);

  Form2.Left := P.X + (ListView1.Width - Form2.Width) div 2;
  Form2.Top := P.Y - Form2.Height;

  if Form2.Top < 0 then
    Form2.Top := 0;

  Form2.Show;
end;

// Saludos
Responder Con Cita