Scrollbar / Slider - On Bar Click ?

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
andrew99
Posts: 11
Joined: Mon Mar 23, 2009 12:49 pm

Scrollbar / Slider - On Bar Click ?

Post by andrew99 » Tue Jan 05, 2010 5:47 pm

Wondering if anyone can help me - I need to change the 'On Bar Click' increment from 1 to 0.5 and the basic properties for the slider / scrollbar won't allow it. Any ideas?

Andrew

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Scrollbar / Slider - On Bar Click ?

Post by bn » Tue Jan 05, 2010 9:27 pm

Andrew,

Code: Select all

on mouseUp
   set the pageinc of scrollbar 1 to .5
end mouseUp
you might want to set the numberformat or Value Format to .0

Code: Select all

set the numberformat of scrollbar 1 to .0
regards
Bernd

andrew99
Posts: 11
Joined: Mon Mar 23, 2009 12:49 pm

Re: Scrollbar / Slider - On Bar Click ?

Post by andrew99 » Fri Jan 08, 2010 5:56 pm

Thank you

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”