0

i have a blank vertscrollbox at design time. the vertscrollbox have client align into the expander3 :

enter image description here

at run time i will add some button to vertscrollbox by this code:

  btnSelect := TButton.Create(VertScrollBox2);
  btnSelect.OnClick:= btnSelectCick;
  btnSelect.Parent := VertScrollBox2;
  btnSelect.Align := TAlignLayout.Scale;
  btnSelect.Position.X := cng*70;
  btnSelect.Position.Y := bng*70;
  btnSelect.Width := 60;
  btnSelect.Height := 60;
  btnSelect.text := 'Select'+bng.ToString+cng.ToString;
  btnSelect.name := 'Select'+bng.ToString+cng.ToString;

after 9 time run the above code it be like this:

you can see there is no scrollbar and some part of buttons is hiding under the border

enter image description here

how can i force vertscrollbox layout to show scrollbars? or update the alignment in runtime!?

peiman F.
  • 1,648
  • 1
  • 19
  • 42

0 Answers0