At 05:03 PM 9/20/2002 +0000, you wrote:
>Hi All
>I'm still trying to figure out how to implement image transparency using 
>masks and WinPaintBitmap (see post last night). Since this isn't working 
>for me, I'm trying a couple of alternatives. First, I might want to hack 
>into the .r file that gets output from PilRC plugin. Maybe I could 
>explicitly set the graylevel transparency in that file, so I wouldn't need 
>to use masks. But, I can't tell what the format of the .r file is. Anyone 
>out there know what the format of the .r file is, especially for Tbmp 
>resources?

The type definitions for the res file are in "UIResDefs.r", part of the 
Palm OS SDK.  To get a reference to the Rez language, you need to download 
the book "Building and Managing Programs in MPW" from 
http://developer.apple.com/tools/mpw-tools/books.html.

>Another option is to use the rez tool to convert the existing .r file into 
>a .rsrc file, then edit this file in constructor, set the transparent gray 
>color for each transparent image (since one can do this in Constructor but 
>not in PilRC plugin), then save the new .rsrc file, add to my project and 
>compile. My problem here is that I can't find a Windows 98/NT version of 
>the rez (and derez) tool. Anyone know where I can find this?

I've covered this before -- you can use the Mac OS Merge linker in V8 to 
compile .r files to .rsrc files.  Make a copy of the 
Rad_Stationery\Palm_OS\Application\palm_os_template.mcp project in your own 
folder and open it to see a target which does this -- just don't modify the 
one in the Rad_Stationery folder, as it would affect the operation of the 
project wizard.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to