Fórum Sobre Repaint do TreeView #281604
13/05/2005
0
begin if TrVwControles.Selected.ImageIndex < 2 then begin if TrVwControles.Selected.ImageIndex = 0 then TrVwControles.Selected.ImageIndex := 1 else TrVwControles.Selected.ImageIndex := 0; end; TrVwControles.Repaint; end;
Bruno Belchior
Curtir tópico
+ 0Posts
13/05/2005
Biohazard
TreeView.Repaint
faça:
Form1.Repaint
Gostei + 0
14/05/2005
Macario
Use conforme o destacado abaixo, espero que lhe ajude.
begin if TrVwControles.Selected.ImageIndex < 2 then begin if TrVwControles.Selected.ImageIndex = 0 then TrVwControles.Selected.ImageIndex := 1 else TrVwControles.Selected.ImageIndex := 0; end; [color=red][b] TrVwControles.Invalidate;[/b][/color] end;
Gostei + 0
14/05/2005
Macario
begin
if TrVwControles.Selected.ImageIndex < 2 then
begin
if TrVwControles.Selected.ImageIndex = 0 then
TrVwControles.Selected.ImageIndex := 1
else
TrVwControles.Selected.ImageIndex := 0;
end;
[b:d3030136ae][color=red:d3030136ae]TrVwControles.Invalidate;[/color:d3030136ae][/b:d3030136ae]
end;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)