lin@diemen.utas.edu.au (Tony Lim) (11/09/90)
Hi, all! Can any one out there tell me how can dim a text string? I am developing a stack with many buttons. I like to set the textStyle to "dimmed", so that it is disabled but people can still see it. Any suggestions? Thank you in advance. --Tony Lim
greggor@Apple.COM (Greg L. Anderson) (11/11/90)
In article <1844@diemen.utas.edu.au> lin@diemen.utas.edu.au (Tony Lim) writes: >Can any one out there tell me how can dim a text string? I am developing >a stack with many buttons. I like to set the textStyle to "dimmed", so that >it is disabled but people can still see it. In HC 1.2, I painted text onto the card graphics behind buttons I wanted to disable & dimmed them manually. When I wanted to disable a button, I just used the "hide cd button foo" command. It worked wonderfully, but it was a pain to move the background bits around if the buttons needed to be repositioned. HC 2.0 might have better disable tools, but I haven't had much time to take a look at it yet. -- ___\ /___ Greg Anderson (6 kyu) ___\ /___ . O . "Pon Nuki \ \ / / Advanced Technology Group \ \ / / O . O is ideal \ /\/\ / Apple Computer, Inc. \ /\/\ / . O . shape." \/ \/ greggor@apple.com \/ \/
ruddd@prlhp1.prl.philips.co.uk (Dennis Rudd) (11/14/90)
In article <46466@apple.Apple.COM> greggor@Apple.COM (Greg L. Anderson) writes: >In article <1844@diemen.utas.edu.au> lin@diemen.utas.edu.au (Tony Lim) writes: >>Can any one out there tell me how can dim a text string? I am developing >>a stack with many buttons. I like to set the textStyle to "dimmed", so that >>it is disabled but people can still see it. > >In HC 1.2, I painted text onto the card graphics behind buttons I wanted >to disable & dimmed them manually. When I wanted to disable a button, I >just used the "hide cd button foo" command. > >It worked wonderfully, but it was a pain to move the background bits around >if the buttons needed to be repositioned. Here is a script which paints a dimmed image of a button beneath that button. It works for both card and bkgnd buttons. Not for icons, though! Dennis .................................................................. Dennis Rudd Philips Research Laboratories ruddd@prl.philips.co.uk Redhill Surrey RH1 5HA UK .................................................................. --- (This file must be converted with BinHex 4.0) :$%4TE5eK,8*eG(4[EJ"69%&,9dP-4!%!!!!``!!!!!$1l3!!#!"69%&,rrrrrqE )qBN!!!!)!!!``!!!#!!!!!!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!89!1*-J)+L-%)U)LSLS! #!L+#SX'L+J+L)JJU)J1,8e!8"!38%N$"!!%!3"!%!%"#"""!%!1'%`8P!8!8"!` 6!Q8#J!!#!)!0-a88&"-"%J("!%!%"!"!!!853!5*'!Jb!J##$K!"&i`8&!iBH") #i4!"i3Z1%B!@CK)#iD5"%!%E3!q*'`,K%!%D!H''Lc33!!(K"BNd)!!#&!,KLh- %""38&"%3i3*c#!)U+#SL)1%#8a!&!3!"i336!Z%)%a(K#"-)i3J6!6-""&$K!SN E!Z%3!4S"iD+'MK'!'3,KM4!"'i!2G'pZ$3d!!!!!!$Sp!!!!!!!!!!!!!!!!!!! !!!!!!!!J9%&*62rrrrm69'KKG#Gc)'&XE#"QEfaVFbiZ,[fb!!!: ---
bc@Apple.COM (bill coderre) (11/26/90)
In principle, there is a simple and nice way to dim text: provide a "dim" font, and switch to and from it as needed. Here's some notes on doing that. First, you have to make a dim font. I have seen a font "ChicagoGrey" floating around, but I don't know its legal status. Nevertheless, you could use any font editor to make one of your own, and install it into whichever stacks need it. The details of this are left as an excercise to the Reader. Second, although the Hypertalk statement "set the textfont of <blah> to <foo>" works fine, it can actually be very slow, for reasons only the HC team understands. Therefore, here are three suggestions: * If you are going to update a "button panel" frequently, consider wrapping a "lock screen" and an "unlock screen" around the whole mess. It will speed things up quite a bit. * Use something like the following to change the button status: on setEnabled oname status if (the textfont of oname is "Chicago") is status then return else if status then set the textfont of oname to "Chicago" else set the textfont of oname to "ChicagoGrey" end if end setEnabled The first line checks to see if the object has the right font already, and if so exits without doing anything. This hack also greatly increases the speed of updates. * Don't update the status of any buttons that "obviously" should not have changed. Don't hurt yourself doing this, though. I once figured I'd optimize the updates through the World's Most Complex If Statement, but it didn't help. ALL of the slowness came from the "set textfont" statement. By following these precautions, you will have speedy updates. Last, you need this handler in your buttons: on mouseDown if the textfont of this button is "Chicago" then... end mouseDown Embellishments optional. Tartar sauce 35 cents extra. If you need more help, drop me a line. bill coderre private consultant for a day
mxmora@unix.SRI.COM (Matt Mora) (11/27/90)
In article <46801@apple.Apple.COM> bc@Apple.COM (bill coderre) writes: > >First, you have to make a dim font. I have seen a font "ChicagoGrey" >floating around, but I don't know its legal status. Nevertheless, you >could use any font editor to make one of your own, and install it into >whichever stacks need it. The details of this are left as an excercise >to the Reader. Apple recommends that you don't include fonts in any documents. And since a stack is just a document Apple recommends not putting them into a stack either. I believe it has something to do with the print monitor. I thought that you might like to know. (as you can imagine this didn't go over to well with stack developers) >bill coderre >private consultant for a day -- ___________________________________________________________ Matthew Mora | my Mac Matt_Mora@sri.com SRI International | my unix mxmora@unix.sri.com ___________________________________________________________