Einzelnen Beitrag anzeigen

danten

Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
 
Delphi 10.1 Berlin Architect
 
#1

[android] resize component runtime

  Alt 3. Okt 2019, 15:32
Hi, I need to resize all TRectangle in TFlowLayout on android.
It doesn't work for me.

Delphi-Quellcode:
procedure TfrmMain.FormResize(Sender: TObject);
var
  i: integer;
begin
  FlowLayout1.BeginUpdate;
  for I := 0 to FlowLayout1.ComponentCount -1 do
  begin
    if Components[i] is TRectangle then
    begin
      TRectangle(Components[i]).BeginUpdate;
      TRectangle(Components[i]).Width := (FlowLayout1.Width / 3) -10;
      TRectangle(Components[i]).EndUpdate;
    end;
  end;
  FlowLayout1.EndUpdate;
end;
Thank you
Daniel
  Mit Zitat antworten Zitat