View Single Post
07/24/14, 06:42 AM   #14
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by zgrssd View Post
If possible, make a pure XML example (I am not sure you can even use ZoScrollList in XML as it seems not valid as control type when I tried).
You create a <Control> with attribute inherits="ZO_ScrollList". ZO_ScrollList is itself a <Control> with attribute virtual="true".
In Garkin's XML above, it's this part (with ZO_ScrollContainer instead):

Originally Posted by Garkin View Post
xml Code:
  1. <GuiXml>
  2.     <Controls>
  3.         ...
  4.         <TopLevelControl name="EventExplorerWindow" mouseEnabled="true" movable="true" clampedToScreen="true" hidden="true">
  5.             <Dimensions x="760" y="650" />
  6.             <Anchor point="CENTER" />
  7.             <Controls>
  8.                 ...
  9.                 <Control name="$(parent)Container" inherits="ZO_ScrollContainer">
  10.                     <Anchor point="TOPLEFT" offsetY="30" />
  11.                     <Anchor point="BOTTOMRIGHT" />
  12.                 </Control>
  13.                 ...
  14.             </Controls>
  15.         </TopLevelControl>
  16. </GuiXml>
ZO_ScrollContainer is a control that contains the slider bar, buttons and the scrolled area, which is named "$(parent)ScrollChild".

"EventExplorerWindow" -> "Container" -> "ScrollChild" is then named EventExplorerWindowContainerScrollChild in _G, look that up in Garkins code, this control is used as the parent of created rows.
  Reply With Quote