Jump to content

UnimScrollBox1 current position


Pink-El

Recommended Posts

UnimScrollBox does not work correctly. It does not fix curret position if create child controls dynamic. Can you help me?
for i:=0 to 100 do
  begin

  with TUnimButton(InsertControl(TUnimButton.Create(Self))) do
  begin
    height:=25;
    width:=40;
    Left:=width+i*(width+5);
    Top:=65;
    Caption:=IntToStr(i);
    OnClick:=UnimButton1Click;
    Parent:=UnimScrollBox1;
  end;

 

Dmytro

Link to comment
Share on other sites

Well, I tried different ways but I did not found how to set scrollwidth… My idea was to create Unipanel set the width and use Insertcontrol method of the uniscrollbox, but no effect. I can scroll but uniscrollbox does not update scrollwidth and back… Any ideas?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...