From: Richard K. <ric...@us...> - 2005-05-23 11:10:23
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15375/test Modified Files: ASTestScrollers.as Log Message: got scroll buttons working and the scroll knobs rendering Index: ASTestScrollers.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestScrollers.as,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ASTestScrollers.as 22 May 2005 03:35:37 -0000 1.1 --- ASTestScrollers.as 23 May 2005 11:10:13 -0000 1.2 *************** *** 34,37 **** --- 34,46 ---- class org.actionstep.test.ASTestScrollers { public static function test() { + + var testObject = new Object(); + testObject.vscroller = function(scroller) { + TRACE("VScroller"); + } + testObject.hscroller = function(scroller) { + TRACE("HScroller"); + } + var app = NSApplication.sharedApplication(); var window1 = (new NSWindow()).initWithContentRect(new NSRect(0,0,250,250)); *************** *** 42,47 **** --- 51,61 ---- var vscroller:NSScroller = new NSScroller(); vscroller.initWithFrame(new NSRect(180, 0, 20, 180)); + vscroller.setTarget(testObject); + vscroller.setAction("vscroller"); + var hscroller:NSScroller = new NSScroller(); hscroller.initWithFrame(new NSRect(0, 180, 180, 20)); + hscroller.setTarget(testObject); + hscroller.setAction("hscroller"); view.addSubview(vscroller); |