little arrows scrollbars?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Location: Scotts Valley, California, USA
Contact:

little arrows scrollbars?

Post by paulgabel » Sun Jul 22, 2007 12:47 am

I can't get the Little Arrows to work properly. I've read several articles by other frustrated little arrow users, but I can't find anything that helps. The docs have not been updated to specificly deal with them. Could somebody reply with an actual little arrows script that will increase or decrease the number in a corresponding field by an increment of 1 at each click? Thank you in advance. :?:
Paul Gabel

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Post by Klaus » Sun Jul 22, 2007 10:25 am

Hi Paul,

this script of a "little arrows" scrollbar will do what you want:
Of course you need a field with a number in it!

Code: Select all

on scrollbarLineDec
  add 1 to fld 1
end scrollbarLineDec

on scrollbarLineinc
  subtract 1 from fld 1
end scrollbarLineinc

Regards

Klaus

paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Location: Scotts Valley, California, USA
Contact:

Thank you

Post by paulgabel » Sun Jul 22, 2007 8:30 pm

Thanks, Klaus. Once again you've bailed me out (American colloquialism). I had tried these handlers, but I was putting the add and subtract in the wrong places. :D
Paul Gabel

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”