![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#2
|
||||
|
||||
|
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;
ScaleBy(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);
}
}
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... Última edición por ecfisa fecha: 13-03-2012 a las 10:27:53. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Resolucion de pantalla | hermes_32 | Varios | 5 | 13-06-2015 23:18:00 |
| resolucion de la pantalla??? | Negriz | C++ Builder | 3 | 19-05-2008 00:52:01 |
| Resolucion de pantalla | oregon | Windows | 1 | 22-03-2007 15:09:43 |
| Resolucion de pantalla | luxus | Gráficos | 1 | 04-10-2005 00:09:30 |
| Resolución de pantalla | kalimero | Varios | 8 | 05-11-2003 21:41:47 |
|