home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / hypercar / 4739 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.4 KB  |  62 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!murdoch!curry.edschool.Virginia.EDU!mhz7c
  3. From: mhz7c@curry.edschool.Virginia.EDU (Mark H. Zollinhofer)
  4. Subject: Re: Progress ribbon in dialog box
  5. Message-ID: <1993Jan8.062031.29404@murdoch.acc.Virginia.EDU>
  6. Sender: usenet@murdoch.acc.Virginia.EDU
  7. Organization: University of Virginia
  8. References: <edandavi.725335110@well.sf.ca.us>
  9. Date: Fri, 8 Jan 1993 06:20:31 GMT
  10. Lines: 50
  11.  
  12. edandavi@well.sf.ca.us  writes:
  13. > If you want to do a progress ribbon in HyperCard itself, you basically
  14. > need two parts, a passive rectangle which is paint or a button or a field,
  15. > and overlaying that, a hilited button which you resize to represent the
  16. > progress.  You'll change the rect of the indicator button each time you
  17. > update, keeping the left, top, and bottom coordinates, and adjusting the
  18. > right one.
  19. > the line at the core of the routine is:
  20. > set the rect of button <whatever> to myLeft,myTop,myRight,myBottom
  21. > Before that line you will have to fill those in, with only the right one
  22. > changing.
  23. > For a simple case ( a one hundred pixel progress bar, so as not to deal with
  24. > rounding from percents to pixels)
  25. > on updateProgress percentDone
  26. >   put the rect of btn "backButton" into buttonRect
  27. >   put item 1 of buttonRect + percentDone into item 3 of buttonRect
  28. >   set the rect of btn "indicator" to buttonRect
  29. > end updateProgress
  30. > There are also XCMDs that give you progress bar dialogs with or without
  31. > cancel buttons, etc.
  32. > Ed Allen
  33. > edandavi@well.sf.ca.us
  34. > BMUG HyperCard SIG Leader    Scripter for Hire
  35.  
  36. Thanks for the info.  I think that approach will work, but do
  37. you know how reactive it is , speedwise?  I'm interested in
  38. having the ribbon both increase and decrease in reaction to
  39. mouseClicks that the user is inputting in regard to movement on
  40. the screen of a button in random motion through scripting.  I
  41. hoped that an XCMD would be quicker, but I cant' find one
  42. currently.  I thought I'd seen one somewhere, but can't seem to
  43. locate in now when I need it.  Any suggestions for a source?
  44.  
  45. Thanks in advance.
  46. --
  47. |   Mark H. Zollinhofer          *****  Quotable quote:                 |
  48. |   619 Highland Ave.              |     "There's no need to take God   |
  49. |   Charlottesville, VA 22903      |      seriously." -Lot's wife       |
  50. |   internet: mhz7c@virginia.edu   |                  (Gen 19:26)       |
  51.