GARANTIR DESCONTO

Fórum Resolução de tela #312295

08/02/2006

0

caros colegas, tenho uma duvida simples de ser sanada creio eu.... :shock:

em um dos formularios do meu sistema segui os passos para a resolução de tela como abaixo:

const
ScreenWidth: LongInt = 800; {I designed my form in 800x600 mode.}
ScreenHeight: LongInt = 600;


procedure TPrincipal.FormCreate(Sender: TObject);
var
i:integer;
p:PPropInfo;
begin
    // resolução
    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;
    // tamanho das fontes
    for i := componentCount - 1 downto 0 do
    with components [i] do
    begin
        p := GetPropInfo (ClassInfo, ´font´);
        if assigned (p) then
        font.size := (Principal.Width DIV Principal.Width) * font.size;
    end;
end;


Minha duvida é a seguinte:

- desenvolvo meus sistemas com a configuração de tela 1024x768 aqui no meu P.C. o fato de eu setar 800X600 em ´Const´ irá fazer com que o sistema se adapte automaticamente a tela, quando o usuário abri-lo em 800x600? ou eu teria que setar lá 1024???

Abraços!


Mahdak

Mahdak

Responder

Posts

09/02/2006

Mahdak

subindo...


Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar