Hello Guest

Author Topic: Help with tk2UILayoutContainer  (Read 3113 times)

Daiflys

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Help with tk2UILayoutContainer
« on: April 08, 2014, 12:32:07 pm »
Hello, i'm trying to get the documentation for tk2UILayoutContainer but here is nothing:
http://www.unikronsoftware.com/2dtoolkit/docs/latest/html/classtk2d_u_i_layout.html

What i want to do is create a tk2dUIScrollableArea, and in the LayoutContanier, resize some elements and refresh the container so the LayoutContainer relocates the items resized to not overlap between them, is that possible?
Thanks in advance!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Help with tk2UILayoutContainer
« Reply #1 on: April 09, 2014, 06:01:14 am »
Not tried it but I don't see why it won't work. Once you add your layouts to the layoutcontainersizer, resize the child layouts as you see fit - after that you will need to call layoutcontainersizer.DoChildLayout() to force layout the children, this is protected but you could make it public.