home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / winamp501_full.exe / $_14327_ / historyeditbox.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2003-08-25  |  2KB  |  55 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Button Button2;
  6. Global Button Button3;
  7. Global Edit Edit4;
  8. Global GuiObject GuiObject5;
  9.  
  10.  
  11. System.onScriptLoaded()
  12. {
  13. Group Group6;
  14. Group6 = System.getScriptGroup();
  15. if(( Group6 == Null)) {
  16. return Null;
  17. }
  18. Button2 = Group6.findObject(( "historyeditbox\.back\.button"));
  19. Button3 = Group6.findObject(( "historyeditbox\.forward\.button"));
  20. Edit4 = Group6.findObject(( "historyeditbox\.edit"));
  21. GuiObject5 = Group6.getParent();
  22. if(( GuiObject5 != Null)) {
  23. if(( System.StringToInteger(GuiObject5.getXmlParam(( "navbuttons"))) == 0)) {
  24. if(( Button2 != Null)) {
  25. Button2.hide();
  26. }
  27. if(( Button3 != Null)) {
  28. Button3.hide();
  29. }
  30. if(( Edit4 != Null)) {
  31. Edit4.setXmlParam(( "w"), ( "\-17"));
  32. }
  33. }
  34. }
  35. return Null;
  36. }
  37.  
  38. Button2.onLeftClick()
  39. {
  40. if(( GuiObject5 != Null)) {
  41. GuiObject5.sendAction(( "back"), ( ""), 0, 0, 0, 0);
  42. }
  43. return Null;
  44. }
  45.  
  46. Button3.onLeftClick()
  47. {
  48. if(( GuiObject5 != Null)) {
  49. GuiObject5.sendAction(( "forward"), ( ""), 0, 0, 0, 0);
  50. }
  51. return Null;
  52. }
  53.  
  54.  
  55.