From 8fb82f7d7aa59a799d93e640fcec369c763cf5f3 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Sat, 23 Aug 2014 15:51:33 -0400 Subject: [PATCH] Add scrollbody:GetScrollBar --- changelog.txt | 1 + objects/internal/scrollable/scrollbody.lua | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/changelog.txt b/changelog.txt index 3c3a3d1..d7e09f5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -17,6 +17,7 @@ Version 0.9.9 - Alpha (Release Date TBD) [ADDED] a new columnlist method: SetColumnWidth(id, width) [ADDED] a new columnlist method: GetColumnWidth(id) [ADDED] a new columnlistheader method: SetName(name) +[ADDED] a new scrollbody method: GetScrollBar() [FIXED] bug that would cause tabbuttons to be positioned incorrectly when scrolling with the mouse wheel [FIXED] collision detection issue caused by list child objects not being updated when outside of their parent's bounding box diff --git a/objects/internal/scrollable/scrollbody.lua b/objects/internal/scrollable/scrollbody.lua index 1eec5ce..e82cf78 100644 --- a/objects/internal/scrollable/scrollbody.lua +++ b/objects/internal/scrollable/scrollbody.lua @@ -193,4 +193,14 @@ function newobject:draw() v:draw() end +end + +--[[--------------------------------------------------------- + - func: GetScrollBar() + - desc: gets the object's scroll bar +--]]--------------------------------------------------------- +function newobject:GetScrollBar() + + return self.internals[1].internals[1] + end \ No newline at end of file