Fórum Centralizar o programa #221266
20/03/2004
0
Bacheschi
Curtir tópico
+ 0Posts
21/03/2004
Vinicius2k
Propriedade [color=red:69af1f4823]Position [/color:69af1f4823]= poScreenCenter...
T+
Gostei + 0
21/03/2004
Rocsadan
const
ScreenWidth: LongInt = 800;
ScreenHeight: LongInt = 600;
no oncreate
scaled := true;
if (screen.width <> ScreenWidth) then
begin
height := longint(height) * longint(screen.height) DIV ScreenHeight;
width := longint(width) * longint(screen.width) DIV ScreenWidth;
ScaleBy(screen.width, ScreenWidth);
end;
Gostei + 0
21/03/2004
Tarcisiojr
procedure formPrincipal.Show;
begin
Top:=(Screen.Height div 2) - (Height div 2);
Left:=(Screen.Width div 2) - (Width div 2);
end;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)