REVO2700 + Faking Vista Ranking 3Q /* Vista Stars stack By Eric Chatonet 9/22/07 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 rT Faking Vista Ranking System T U Lucida Grande U Lucida Grande W Lucida Grande W Lucida Grande W Courier U Courier U Courier U Georgia U Georgia U Tahoma U Courier New U Courier New W Tahoma U Tahoma W Verdana U Verdana U Verdana Pulldown Menu cGlx2General id 1190236297200 cREVGeometryCache stackID 1067 cREVOnline cREVGeneral scriptChecksum ,E5DCvYgj debugObjects handlerList preOpenStackscriptSelection char 43 to 42 bookmarks prevHandler preOpenStacktempScript stackfileversion 2.4script
/*
Vista Stars stack
By Eric Chatonet
9/22/07
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
@ T cREVGeometryCacheIDs 1190204535495 5000021109456710609 10331109350253372 10141190204535427 5000031190204580913 10661190281521113 10671109350058804 10121190280954482 10611190280954483 10621109354974199 10211109347801497 10061109350299073 10161109350346443 16001190277776701 500001 cREVGeometrycache order 1109350253372 1109350299073 total 14 cREVGeneral scriptChecksum ُ B~ bookmarks handlerList tempScript prevHandler preOpenCardscriptSelection char 1 to 0script @ % & + 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 Info )` cREVGeometry Master,expectedRect 20,205,473,352Master,scalebottomDistance -53Master,movevDistance falseMaster,scaleBottomObjectSide BottomMaster,movehDistance falseMaster trueMaster,scalerightDistance Master,scaleBottomObjectRef cardMaster,scaleBottomAbsolute trueMaster,cardRanking 1Master,scaleBottom trueMaster,scaleleftDistance Master,scaletopDistance cREVGeneral revUniqueID 1109350253372 $ How-To stack #022 by Eric Chatonet # 10/01/07 Initial release =This stack shows you how to fake Vista Stars Ranking system. < XUsing stars to rank is a Mac feature in iTunes since a long time: Vista now uses it :-) W Here it's provided as a self-contained widget you can copy paste into your projects. It's planned to work on a white background. _ Just hovering stars make the right number of stars hilited according to the cursor position. @ 1600 F G ? Leaving the area without clicking restores previous ranking. @ 1600 0 Clicking on a star sets ranking to the corresponding value unless it's already the current ranking: in this case, ranking is set to zero. @ 1600 H I B How does it work? @ 1600 SThe widget is a group that includes a locked field and three images (0.5 KB each). R vMainly, widget architecture is based on a setProp handler that triggers the uCurRanking custom property of the field. * * 1 L W It triggers three mouse messages: mouseMove to set ranking when hovering, mouseLeave to restore previous ranking when no click and mouseUp to set a new ranking. " " + J T / tMain function RankingWithStars() displays ranking or preview according to the Boolean value of its second argument. S YContents in the field are html that refer to images: there is not any text in the field. : tRankingWithStars() builds and returns the right html using