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
Contact:

little arrows scrollbars?

Post by paulgabel »

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: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

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
Contact:

Thank you

Post by paulgabel »

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