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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...