home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / HCFunctions.txt < prev    next >
Encoding:
Text File  |  2002-04-02  |  808 b   |  33 lines

  1. //Help Box Functions
  2. function SetDisplayText (strText) {
  3.  
  4.     TheHelpBox.Message.message = strText;
  5. }
  6.  
  7. function Refresh () {
  8.     var uTop = (getProperty("TheHelpBox.Message", _height))/-2+(getProperty("TheHelpBox.Up", _height))/2;
  9.     var tTop = uTop+getProperty("TheHelpBox.Up", _height)+1;
  10.     setProperty ("TheHelpBox.Thumb", _y, tTop);
  11.     TheHelpBox.Message.message.scroll = 1;
  12. }
  13.  
  14. function ToggleVisibility () {
  15.     TheHelpBox._visible = !TheHelpBox._visible;
  16.     if (TheHelpBox._visible) {
  17.         Refresh();
  18.     }
  19. }
  20.  
  21. //This tell the HelpBox Control whether or not to AutoDisengage(Set itself to invisible) upon changing frames.
  22. //The HelpBox Control defaults to this being on.
  23. function SetAutoDisEngage(bEnable)
  24. {
  25.     if (bEnable)
  26.     {
  27.         TheFrameWatcher.play();
  28.     }
  29.     else
  30.     {
  31.         TheFrameWatcher.stop();
  32.     }
  33. }