Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!unisoft!hoptoad!farcomp!murat From: murat@farcomp.UUCP (Murat Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: Progress indicator/thermometers Message-ID: <377@farcomp.UUCP> Date: 13 Jun 91 06:18:41 GMT References: <25104@unix.SRI.COM> <22235@imag.imag.fr> <11326@bunny.GTE.COM> <25175@unix.SRI.COM> Reply-To: murat@farcomp.UUCP (Murat Konar) Organization: Farallon Computing Inc. Berkeley, CA Lines: 54 In article <25175@unix.SRI.COM> mxmora@unix.sri.com (Matt Mora) writes: >Anyway, I wasn't asking about the "candy stripes". I was asking about the >progress bar that is used when you copy a file. > >Are there any finder engineers on the net? Does anybody have a email address >for one? I think this is a Human Interface issue that Apple should solve. > >Let me know how to get the colors and I will write a cdef to do it. > Beat you to it. Below is a System 7 style progress indicator CDEF. Using it is pretty strightforward. Set the min to 0 and max to 100 (actually, you can use any values you want). Use SetCtlValue to change how much of the mercury in the thermometer. Note that this CDEF assumes a horizontal orientation. Enjoy! (This file must be converted with BinHex 4.0) :#d*KFN0%48BZFfPd!&0*9#&6593K!!!!!!68!!!!!!rC8dP8)3!"!!!%e(*-BA8 "!!!!!!!!!!)!"d*KFN0%48B!0J"h-U*!JX''3),"N!"!JX'J2`!!!rrD9m"%!"e !!(FbZ!"dHNB!GjcN!q3"#`!N!!%!!!"h-Y*bFh*M8P0&4!%!T(aC-U4m@6-!!!9 d!!!!!!!!"%i!!!!!5J%!!!!!!!!!!+&Q!!!%#!LJ!)f!"!i'""+3!-'`#9,+c#P #*JdG%&$NP$&64U1E-4)&%*3c4mkB!d,#b"P#T)J4N3&*QT3bT3L4J3$3!!"%%-# %0M&,MU&T%kG1RMf6+Je)LNm@'8S,d"'J5H!5HJ+A!YK!d''&+@MHb+%cTJiG94J eF[3)FJj-!"Nh$M%E!LFRR!3Gr1MCJ&Y!"dN4Z!QS!!!T(PMSN!"+NkD#eXG*Qh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X"3+'!8!!MS!!"*!!!)JU!H!(9bJB!$)JU("%EhS4qpe[r-' -&k$N%)968*li)B-Ac%e2@S#"#h3%"JLiX'3@!!2KA[J2%06`$1kS!K$1))mbNI# 'ZZ#("9T`"!$%ESB[j)F!A2#"F6hK(6Ub6N$`BK#%+!3!$,P#'J#K!#83K!-!J%T S@Q)%JLL!0%Zj`MEid)#8b!%%5A"$4FBJ(V%!K+%!!!: -- ____________________________________________________________________ Have a day. :^| Murat N. Konar murat@farcomp.UUCP -or- farcomp!murat@apple.com