HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Allow sticky bottoms  (Read 921 times)

WorldWideZ

  • World Owners
  • ****
  • Posts: 524
    • View Profile
    • World Wide Zed
Allow sticky bottoms
« 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
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1149
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: Allow sticky bottoms
« Reply #1 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
Logged

WorldWideZ

  • World Owners
  • ****
  • Posts: 524
    • View Profile
    • World Wide Zed
Re: Allow sticky bottoms
« Reply #2 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!
Logged