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