#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" Managing Scrollbars 2" /* Snap to scrollbar stack By Eric Chatonet 2/27/05 http://www.sosmartsoftware.com/ */ on preOpenStack set the style of this stack to modeless set the loc of this stack to the screenLoc end preOpenStack 6 Managing "Snap to" Scrollbars U Lucida Grande U Lucida Grande W Lucida Grande W Lucida Grande W Courier U Courier U Courier U Georgia U Georgia U Tahoma Pulldown Menu cREVOnline fingerprint iHMCH_wS4GHLXxb03k0sag cREVGeneral scriptChecksum ӑx*n`=|[x debugObjects bookmarks handlerList preOpenStacktempScript prevHandler preOpenStackscriptSelection char 208 to 207script c
/*
Snap to scrollbar stack
By Eric Chatonet
2/27/05
http://www.sosmartsoftware.com/
*/
on preOpenStack
set the style of this stack to modeless
set the loc of this stack to the screenLoc
end preOpenStack
@ cREVGeneral scriptChecksum ُ B~ bookmarks handlerList scriptSelection char 1 to 0prevHandler preOpenCardtempScript script @ BlackCheckmark.png PNG IHDR pHYs gAMA |Q cHRM z% u0 ` : o_F xIDATxb` 17 R@L:̤/@,0@ 1I +x%@ Lħ HW ť $@PIV dĊK8 0 6 IENDB` cREVGeneral revUniqueID 1109347801497 SB i - cREVGeneral revUniqueID 1109350058804 Option Menu u on menuPick pItem set the endValue of sb "scrollBar" to pItem set the pageInc of sb "scrollBar" to pItem / (pItem + 1) end menuPick v k A 5 4 5 6 7 8 9 10 11 12 13 14 15 cREVGeneral scriptChecksum xB$hCA~ revUniqueID 1109514287349 bookmarks handlerList menuPicktempScript prevHandler menuPickscriptSelection char 118 to 117scripton menuPick pItem
set the endValue of sb "scrollBar" to pItem
set the pageInc of sb "scrollBar" to pItem / (pItem + 1)
end menuPick
Label Field k i cREVGeneral revUniqueID 1109514508981 Scrollbar range: Info ` cREVGeneral revUniqueID 1109350253372 #How-To stack #007 by Eric Chatonet " 2/27/05 Initial release <3/3/05 Revision after some discussions on the mailing list 5 45/27/05 Modified for Tutorial Picker compatibility @ @ , DThis stack shows how to manage a scrollbar with a snap-to behavior. C A workaround is used to display properly right ticks with Mac OS X: scrollbar pageInc property is set to endValue property + 1. But this works only for endValues from 4 to 15. @ 1600 ! " . P W k s > ! This can't be seen on Windows. @ 1600 CThanks to Richard Gaskin who helped to simplify the first release. B ` SSS.png Hon mouseDown revGoUrl "http://www.sosmartsoftware.com" end mouseDown k " -PNG IHDR " . pHYs .# .#x?v 9iCCPPhotoshop ICC profile xڝwTTϽwz0z.0. Qf Ml@DEHb!(`HPb0dFJ|yyǽgs{. $O./ 'z8WGб x 0Y驾A@$/7z HeOOҬT _lN:K"N3"$F/JPrb[䥟}Qd[Sl1x{#bG\NoX3I[ql2 $8xtr p/8pCfq.Knjm͠{r28?.)ɩL^6 g,qm"[Z[Z~Q7%" 3R `̊j[~ : w! $E}kyhyRm333: }=#vʉe tqX)I)B>== <8Xȉ9