HeroEngine Forums

HeroEngine Support => GUI Creation => Topic started by: WorldWideZ on Dec 12, 13, 01:12:59 AM

Title: Allow sticky bottoms
Post by: WorldWideZ on Dec 12, 13, 01:12:59 AM
Is there anyway of setting this flag from HSL? i have one GUI that wants it turned on and one that does not , but otherwise the base structure is the same and i was hoping not to have to make another copy of the base just for that flag if i can avoid it
Title: Re: Allow sticky bottoms
Post by: Thazager on Dec 12, 13, 08:06:36 PM
Yes, using the clientarea of _scrollableParent in the window. Make sure the class is of the type GUIScrollablePanel in order to use the allowStickyBottom field.

  name as String = ""     // name of window
  var win = FindGUIControlByName(None, name)
  clientarea as NodeRef of Class GUIScrollablePanel  = FindGUIControlByName(win, "_scrollableParent.clientarea")

  clientarea.allowStickyBottom = true     // or false as needed
Title: Re: Allow sticky bottoms
Post by: WorldWideZ on Dec 13, 13, 01:14:58 AM
cheers dude , i knew there would be a way but i was having major trouble finding it!