From: Richard K. <ric...@us...> - 2005-07-15 22:37:24
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21937/test Modified Files: ASTestSheet.as Log Message: give the backgrounds some color, change release to close Index: ASTestSheet.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/test/ASTestSheet.as,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ASTestSheet.as 15 Jul 2005 12:26:55 -0000 1.2 --- ASTestSheet.as 15 Jul 2005 22:37:15 -0000 1.3 *************** *** 55,60 **** view2 = (new ASTestView()).initWithFrame(new NSRect(0,0,250,250)); view2.setBorderColor(new NSColor(0xFF0000)); ! //view3 = (new ASTestView()).initWithFrame(new NSRect(0,0,250,250)); ! //view3.setBorderColor(new NSColor(0xFF0000)); begin = (new NSButton()).initWithFrame(new NSRect(10,80,70,30)); --- 55,60 ---- view2 = (new ASTestView()).initWithFrame(new NSRect(0,0,250,250)); view2.setBorderColor(new NSColor(0xFF0000)); ! var view3 = (new ASTestView()).initWithFrame(new NSRect(0,0,250,250)); ! view3.setBorderColor(new NSColor(0xFF0000)); begin = (new NSButton()).initWithFrame(new NSRect(10,80,70,30)); *************** *** 84,88 **** main.setContentView(view1); ! error.setContentView(view2); //other.setContentView(view3); view2.setHidden(true); --- 84,88 ---- main.setContentView(view1); ! other.setContentView(view3); //other.setContentView(view3); view2.setHidden(true); *************** *** 100,109 **** alert.addButtonWithTitle("OK"); alert.addButtonWithTitle("Cancel"); alert.addButtonWithTitle("Don't Save"); ! alert.setMessageText("Delete the record"); alert.setInformativeText("Deleted records cannot be restored."); alert.setAlertStyle(NSAlertStyle.NSWarning) main.resignKeyWindow(); ! view2.setHidden(false); alert.beginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(main, self, "alertDidEndReturnCodeContextInfo", null); --- 100,109 ---- alert.addButtonWithTitle("OK"); alert.addButtonWithTitle("Cancel"); alert.addButtonWithTitle("Don't Save"); ! alert.setMessageText("Delete the record?"); alert.setInformativeText("Deleted records cannot be restored."); alert.setAlertStyle(NSAlertStyle.NSWarning) main.resignKeyWindow(); ! //view2.setHidden(false); alert.beginSheetModalForWindowModalDelegateDidEndSelectorContextInfo(main, self, "alertDidEndReturnCodeContextInfo", null); *************** *** 113,117 **** var ans = ASUtils.findMatch([NSAlertReturn], ret); TRACE("button clicked: "+ans.prop); ! TRACE("releasing sheet... "+(sheet.release() ? "successful!" : "failed!")); } --- 113,118 ---- var ans = ASUtils.findMatch([NSAlertReturn], ret); TRACE("button clicked: "+ans.prop); ! TRACE("releasing sheet... "); ! sheet.close(); } |