Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ticket #3 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

method to GET the current scroll offset

Reported by: alex Owned by: alex
Priority: minor Milestone: Version 3
Component: component1 Version:
Keywords: scrollbar Cc:
Operating system: All Player: All

Description

There should be a method to GET the current scrolloffset instead of using the script obbjects property pScrolloffset property

Change History

comment:1 Changed 2 years ago by alex

  • Operating system set to All
  • Player set to All
  • Resolution set to fixed
  • Status changed from new to closed

on mGetCurrentScrollOffset me, tabname

-----------------------------------
-- CREATED: 2008-10-10 at 11:06
-- ACTION: Get the current scrolloffset
-- INPUT: <tabname> ; string ; name of the table, which shall be addressed,
-- if empty, the first table in the list of tables is used
-- RETURNS: point ; the current scrolloffset
-- EXAMPLE: currentScrollOffset = sendSprite(xscr().mGetKanal(#tableSprite), #mGetCurrentScrollOffset, "myTable")
-----------------------------------


on mGetOverallScrollDistance me, tabname

-----------------------------------
-- CREATED: 16.10.2008
-- ACTION: get the distance in pixels, which is hidden and can be scrolled
-- this is the difference between the width/height of the entire table
-- and the width/height of the visible area
-- INPUT: <tabname> ; string ; name of the table, which shall be addressed,
-- if empty, the first table in the list of tables is used
-- RETURNS: point ; scrolldistance horizontal and scrolldistance vertical
-- EXAMPLE: overallScrollDistance = sendSprite(xscr().mGetKanal(#tableSprite), #mGetOverallScrollDistance, "myTable")
-----------------------------------

Note: See TracTickets for help on using tickets.