home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / irvine1_0_9.lzh / scripts / starterr.dms < prev    next >
Text File  |  2003-02-15  |  917b  |  42 lines

  1. /*
  2. âXâNâèâvâgÅëè·ë╗âfü[â^
  3. guid={83E59EF1-81F6-4783-B9B8-FE5B19BC34FB}
  4. caption=æIæ≡ö═ê═é╠âGâëü[âAâCâeâÇèJÄn
  5. version=1
  6. hint=æIæ≡ö═ê═é╠âGâëü[âAâCâeâÇèJÄné╖éΘ
  7. event=OnListMenuClick
  8. match=
  9. author=Wolfy
  10. synchronize=0
  11. */
  12.  
  13. function OnListMenuClick(irvine,action){
  14. //âLâàü[âèâXâgâüâjâàü[é╠âNâèâbâNâCâxâôâg
  15.   var item = new IrvineItem;
  16.  
  17.   irvine.BeginProgressBar(irvine.ItemCount);
  18.   try{
  19.     for(var i = 0; i < irvine.ItemCount; i++){
  20.       irvine.ProgressBarStepBy(1);
  21.       if(irvine.GetItemSelected(i)){
  22.         item.data = irvine.GetItemData(i);
  23.         irvine.SetItemSelected(i,item.error);
  24.       }
  25.     }    
  26.   
  27.     //èJÄn
  28.     if(irvine.SelectedItemCount > 0){
  29.       irvine.start(1);
  30.     }
  31.   }finally{
  32.     irvine.EndProgressBar();
  33.     irvine.Invalidate();
  34.   }
  35. }
  36.  
  37. function OnMenuUpdate(irvine,action){
  38. //âüâjâàü[é╠ìXÉVâCâxâôâg
  39.   action.enabled = (irvine.SelectedItemCount > 0);
  40. }
  41.  
  42.