home *** CD-ROM | disk | FTP | other *** search
- Library:
- neilsindicatorlib #55
-
- Author:
- Neil O'Rourke, 6 Victoria St, TAMWORTH, NSW 2340, AUSTRALIA
-
- Overview:
- A progress indicator library, very snazzy, need gadtools and req?
-
- Commands:
- ret.l=PICreateRequest(Title$,Min.l,Max.l [,NoGadgets])
-
- Author's Documentation:
-
- ProgressIndicatorLib Documentation
-
- Neil O'Rourke
-
- Version 1.2 (17/7/94)
-
-
- Introduction
- ~~~~~~~~~~~~
-
- There have been several Progress Indicators around for a while. Just about
- all of them have problems of one form or another. Some need 8 colour Work-
- bench screens, none properly scale the incoming values.
-
- A progress indicator should be adaptable to the programmers need, to
- inform the user what is happening. If creating a progress indicator is too
- hard, then the programmer will give up, and the user will suffer.
-
- Here is my solution to this.
-
- This library consists on only three commands, and requires ReqTools to run.
- The Progress Indicator is not part of ReqTools, but modeled closely on the
- one in PowerPacker and the Amiga Style Guide. The Indicator is usable in
- screens of 1 bitplane and up, and happily scales the data into a percentage
- bar.
-
- For instance, suppose you are scanning through a block of memory on a byte
- by byte basis, with start address Start and end address Start+4069.
-
- To set up the requester, you'd type
-
- PICreateRequest("Please Wait...",Start,Start+4096)
-
- and the requester takes care of every thing else. To update the requester,
- you'd type
-
- PIUpdateRequest(Start+Offset)
-
- and the requester scales the addresses into a displayable form.
-
-
- Commands
- ~~~~~~~~
-
- ret.l=PICreateRequest(Title$,Min.l,Max.l [,NoGadgets])
- ------------------------------------------------------
-
- Creates a Progress Indicator requester, locks the calling window and
- returns either True or False. Always check this! The requester can fail
- if there isn't enough memory, or Min>Max.
-
- Min and Max refer to what the bar actually displays. These are unsigned
- values, so no negative numbers are allowed.
-
- If the requester has returned True, then the window that called it is now
- locked and will not accept any input from the user. The only thing the
- user can do now is hit the Cancel gadget.
-
- If you include the NoGadgets field with any number at all, then the request
- will open up WITHOUT a Stop gadget. Use of this feature is stronHÁ j
- 0(
- HÀ.//
- /A
- <NºXOï for advanced programmers gadget
- $
- /C
- <& j
- p
- "
- "k
- 2,l[d(/
- 0*/
- <|`ÜN®ý¢Lß D
- )@gf/
- Nºª.NºjÞHx
- a
- ø"POp
- @d¹@d¸Nº,d¸S
- @d¸NºMhNº Nº_>NºxNºKBNºYxNºZNºjðHl_Þ/,^:Nºn9@_Ìa
-
- ¨NºÔPO gFAíÿÎ",lmN®ÿ@ -ÿÞ°ÿÒg
- ¸ÿÖ -ÿÖÿâ.
- pd¾l"
- N®ÿ:/
- Nº.Nºj:XONºfB§/,^>NºmNºM¨HlB¦/,gBNºpHlB·/,gFNºdNºytOï eP
- Hx
- a
- ÷DXOp
- /
- /
- NºÄLíLüÿN]NuHç
- ~ÿ0,dPHÀB§Hl[/
- HldNºbOï s was caus
-
- f>|
- `2 HÀB§Hl[/
- HldNº8Oï °JWaitT
-
- g
- 9FdP,[`RFp¼@mÈ`,[AìdCìd0°fJ
- föf0,dR2,dP²@g00,dRHÀB§Hl[/
- Hld0NºØOï vent
- ), or t8Cmodule co
- NºXOLß VBLANK interrupt, however °
- windHè
- alid
- `·ì^>f&S fô f,0,^8r$°Am./,^:NºÄXOJ@g l^:p,l[`N®ýØ
-
-
- fr
- ,lmN®ÿ:`¤LßH
- NuHç ,gg/
- Nº?XO ,gBg/
- Nº?XO ,gFg/
- Nº?xXO ,gªg/
- Nº?jXO ,g°g/
- Nº?\XOJ¬g´g
- /,g´Nº:XOJ¬gg"lg,lZN®þ>/,gNº6XO ,g
- g/
- NºjÞXONºÀNºôNº NºhâNºWf ,^>g( ld°!lZì start sometim
- þÆ/,^B/,^>NºPOJ¬[g
- /,[Nº¾XOJ¬[g
- /,[Nº®XOJ¬[g
- /,[NºXO ,^lg/
- Nº*XO ,^:g/
- Nº(XOJ¬[|gCìZ¸,lZN®þ> ,[tg
- "@tributal.
-
- ProgressIndicatorLib is written in 100% machine code, and requires WB2.0>
- to run.
-