Ver Mensaje Individual
  #3  
Antiguo 23-09-2011
washiloo washiloo is offline
Registrado
NULL
 
Registrado: sep 2011
Posts: 7
Reputación: 0
washiloo Va por buen camino
Cita:
Empezado por ecfisa Ver Mensaje
Hola.

Probá lo siguiente:
Código:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
int  Ancho=1024, Alto=768; /* Resolución en que compilás la aplicación */
 
  if(Screen->PixelsPerInch == 96){
    Height = Height * Screen->Height / Alto;
    Width =  Width * Screen->Width / Ancho;
  }
  else if(Screen->PixelsPerInch == 120){
    Height = Height * Screen->Height / Alto;
    Height = Height + ((Height*15) / 100);
    Width = Width * Screen->Width / Ancho;
    Width = Width + ((Width*15) / 100);
    ScaleBy(Screen->Width, Ancho);
    Top = Top - 70;
    Left = Left - 70;
  }
  else {
    Height = Height * Screen->Height / Alto;
    Width = Width * Screen->Width / Ancho;
    ScaleBy(Screen->Width, Ancho);
  }
}
Saludos.
Muchas gracias por tu respuesta. Tendría que hacer esto con la altura y ancho de cada objeto de mi formulario?
Responder Con Cita