Announcement

Collapse
No announcement yet.

How to set the scrollbox child button size?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to set the scrollbox child button size?

    Hi.

    I'm trying to adjust the size of a child button in the scrollbox, unfortunately I haven't found out how to do it.

    Click image for larger version

Name:	scroll.png
Views:	36
Size:	64.2 KB
ID:	1816003

    If I do not add buttons dynamically, it is very easy to do so using the image size

    Click image for larger version

Name:	scroll2.png
Views:	27
Size:	66.0 KB
ID:	1816004

    Thanks

    Savage

    #2
    I'm sure there's some kind of slot you can cast to to get that option but I couldn't tell you which one

    I can however recommend using a size box. It looks like you have a button in a separate user widget you spawn. Wrap the elements of that user widget inside of a size box and make it a variable. You can set the width and height overrides on it directly then after you add it to your scrollbox.
    iTween For UE4
    Procedural pathed animation for actors, components & UMG - $0
    Runtime DataTable
    DataTables dynamically loaded from text or Google Sheets while your game is running!
    easyCSV
    Fast, cheap, and accurate CSV parsing at runtime!

    Comment


      #3
      Thank you!

      Comment


        #4
        i have additional quastion: How can i make extra buttons to scroll the scrollbox-contents up and Down, instead of using the scrollbar?

        "Up button pressed scroll e.g. 1 cm upwards and vice versa"

        Comment

        Working...
        X