Resolução de Vídeo
10/05/2003
0
Por exemplo, se for 800x600 executar um comando, mas se for 1024x768 executar outro comando.
Fmd
Posts
10/05/2003
Marcelo.c
Implementation
const
ScreenWidth: LongInt = 800; {I designed my form in 800x600 mode.}
ScreenHeight: LongInt = 600;
{$R *.DFM}
procedure TForm1.FormCreate (Sender: Tobject);
begin
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;
end;
10/05/2003
Marcelo.c
if (GetSystemMetrics(SM_CXScreen)=640) and GetSystemMetrics (SM_CYScreen)=480) then PagesDlg.WindowState:=wsMaximized;
10/05/2003
Fmd
Clique aqui para fazer login e interagir na Comunidade :)