Bloquear redimensionamento de form pelo usuário
Qual propriedade que faz com que o form fique bloqueado para redimensionamento em tempo de execução?
Henrique Rodrigues
Curtidas 0
Melhor post
Aroldo Zanela
27/07/2004
Colega,
BorderStyle = bsSingle
GOSTEI 3
Mais Respostas
Cabelo
27/07/2004
A propriedade BorderStyle, muda a aparência do form, então eu uso o método contraints..
procedure P_Constraints(l_form : TForm; l_heigth, l_width : integer);
begin
l_form.WindowState := wsNormal;
l_form.Position := poScreenCenter;
l_form.Constraints.MaxHeight := l_heigth;
l_form.Constraints.MinHeight := l_heigth;
l_form.Constraints.MaxWidth := l_width;
l_form.Constraints.MinWidth := l_width;
end;
no evento oncreate do form eu ponho esta procedure, e funciona legal..
espero ter ajudado..
Cabelo
procedure P_Constraints(l_form : TForm; l_heigth, l_width : integer);
begin
l_form.WindowState := wsNormal;
l_form.Position := poScreenCenter;
l_form.Constraints.MaxHeight := l_heigth;
l_form.Constraints.MinHeight := l_heigth;
l_form.Constraints.MaxWidth := l_width;
l_form.Constraints.MinWidth := l_width;
end;
no evento oncreate do form eu ponho esta procedure, e funciona legal..
espero ter ajudado..
Cabelo
GOSTEI 0
Aroldo Zanela
27/07/2004
Colega,
Veja esta thread: http://delphiforum.icft.com.br/forum/viewtopic.php?t=9764
Veja esta thread: http://delphiforum.icft.com.br/forum/viewtopic.php?t=9764
GOSTEI 0