aku@tik.vtt.fi (Arto Kujala) (03/19/91)
Hi. Is there a definition of HC 2.0 palette resource (PLTE) and NewPalette- XCMD somewhere? Is there any other method to create palettes than the tool in Power Tools- stack? --Arto
gandalf@apple.com (Martin Gannholm) (03/20/91)
In article <5452@hemuli.tik.vtt.fi> aku@tik.vtt.fi (Arto Kujala) writes: > Is there a definition of HC 2.0 palette resource (PLTE) and > NewPalette- XCMD somewhere? > > Is there any other method to create palettes than > the tool in Power Tools- stack? Yeah, here's the rez-compatible resource description for the PLTE resource. Run it through MPW Rez and DeRez (or the stand-alone equivalents, SARez..?). type 'PLTE' { integer; /* PLTE format version */ integer; /* window defproc */ integer action = -1,state; /* type of palette */ integer invert = 0,frame; /* hilite mode */ integer; /* PICT ID */ point; /* origin */ longint; /* reserved */ longint; /* refCon */ integer = $$CountOf(ButtonArray); array ButtonArray { Rect; integer; /* reserved */ pstring; align word; }; }; Since I'm feeling really generous today I'll include the ResEdit template for the PLTE resource as well. Enjoy! Martin Gannholm Apple Computer Exclaimer!!! I never said it...Nobody heard me say it...You can't prove anything! Apart from the following PLTE TMPL.hqx, this posting ends here --->. (This file must be converted with BinHex 4.0) :#9"-9%8J9%e36!"bFh*M8P0&4!%!N!F#!h!A!*!%!3#3!`(-!*!$c!#3!cF!!'p Z)'e[GA0P9A!0Ff9d9A0PFNaPGQ9X)$)0C@jN)!e1CAFJ8%a845"869"-!J#3!h* cFQ058d9%!3#3"h*cFQ058d9%!3#3&k+Uh*d!N!B#!`!-!*!$%%*XD@jN)&4jF'P ZC`!!EfiJE@peFf99F!ecCA3JBQaTEQ48HA"TEQFJG'mJG'KP)'KTE'PdC5"[CL" LGA4dEfiJ)N*XD@jN)&4jF'PZCb)0C@jN)'e[GA0P9A!0!*!$H!!1!3!!TJ$6!,X "1U!&!*!&!3#3!``!N!-3!*!$b!G@CA*cD@pZ4&G54!4A4%9'4&G54!48HA"P4&G 54!Y)D@aTG'8J6@pNC84A8N3(8%P$9#"*4%4A8N3)9L"2CQCcCA4%9e*%#%JJ6fC QFf9d4&G54!KbCA0PFRCPC%4-6NF'FQ9Q3fpZ4%a14`a#GA4dEfiJ3fpeER423dj 8"5U3"8a69%-,3R9dG'pZ)&*PBh454808#&*PFf9bGQ9N4&G54!T#GA4dEfiJ6A0 R8&088JC'D@aXCA*"9e*%"5U3"8a69%8!!!%!N!-"c!#3!m`!N!-h!$ir#!T+!*! $(!!b!!"869"-!*!$#R3k!*!(2PbN"&"-9%@XA3: