Hi Steve, and Mike,
There may be an easier way. You can actually view .r files with
human-readable information. The key thing is to have a file called
'PalmType.r' (downloadable from DevZone, under the Tool section) as the
prefix file in the Rez panel for your Project Settings. You can place
PalmType.r in your project folder. For me what I typically do is this:
1. I add a file mapping for type 'RSRC', extension '.rsrc', and set the
compiler to Rez, and add it to the File Mappings panel. This will give me
the option to 'Disassemble' when I right click on a .rsrc file in the
project window.
2. After disassembling, a .r file will be produced. If you don't have
PalmType.r as the prefix file, you will get hex chars, but if you do have
PalmType.r, then you will see all the Palm types and their settings in human
readable form.
That said, there are limitations as Palm hasn't updated PalmType.r to
support bitmap and icon families. But this will allow you to modify the
settings for your resources.
Rgds,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: "Steve Sabram" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, March 20, 2000 11:51 PM
Subject: Re: Small icon
> Mike,
>
> You need to create a file that describes the byte fields of the icon. It
is typically called "smallicon.r" and you just include it
> right below the resource file in your project. The five lines below is
all that there are in the file. This is an example of it.
>
> data 'tAIB' (1001) {
> $"0F00 0900 0200 0000 0000 0000 0000 0000"
> $"7FFC 4004 5224 5574 5824 5004 5FF4 4004"
> $"7FFC"
> };
>
> The first line of eight, 16-bit hex codes is for the resource compiler and
don't change. The last nine, 16-bit hex codes describes
> the small icon structure. The first word represents the top row of the
small icon. The MSB of each word represents the leftmost
> bit in the row of that word going to the right. The LSB of the word is
ignored since the small icons are only 15 bits.
>
> The bad news: I ended up drawing a grid, filling in the squares and
calculating the hex codes myself. There may be shareware now
> out there to help you since I did this over a year ago. If not, anyone
who wants to write it, I'll beta yesterday.
>
> Steve
>
>
> Mike Jensen wrote:
>
> > Unfortunately I have CW5 and it doesn't have the option of creating
> > an icon family.. There has to be another way to do it since others
> > have...
> > Thanks though.
> > Mike
> >
> > >On Mon, 20 Mar 2000, Mike Jensen wrote:
> > >
> > > > >The Constructor PDF manual talks about this.
> > > > >
> > > > >Basically you have to make an icon. Give it an id of 1001 and a
size
> > > > >of 22x22 but use only the top 15x9 for the icon.
> > > > >
> > > > >Chris
> > > > >
> > > > >At 08:08 AM 3/20/2000 , you wrote:
> > > > >>hey
> > > > >>sorry about such a stupid question but I am new to palm
development
> > > > >>and I was curious about how I make a small icon in constructor
> > > > >>(List view icon).
> > > > >>Thanks
> > > > >>Mike
> > > >
> > > > I tried that but it didn't work. I still got the default icon. Any
> > > > other suggestions?
> > > > Thanks
> > > > Mike
> > >
> > >
> > >Mike,
> > >
> > > Having gone through the same problem recently and posted a
> > >similar question to the list, I'll tell you what I've been able to
> > >gather:
> > >
> > >1) You need the latest version of Constructor (assuming your *using*
> > > Constructor) and I don't think that version has made it out into
> > > the "public" area of the Provider Pavilion. At last check (and I
> > > could be wrong; I'd be *glad* to be wrong; I'd like to get a copy)
> > > it's still in the seeding area and I haven't had the time to fill
> > > out the paperwork to get into that area. The version that is
> > > shipping with the compiler that you buy isn't the latest (I bought
> > > mine about a month ago).
> > >2) When you get that version, create an App Icon Family, which is a
> > > "set" of icons under one resource, and give your 32X32 size (e.g.-
> > > not the 22X22 size stated in the Companion PDF) icon an ID of 1000
> > > and your 15X9 icon an ID of 1001.
> > >
> > >This should do the trick according to the incredibly supportive folks
> > >at Palm (THANKS Vivek and Dave!). However, please note that I can't
> > >verify it yet because I can't get the latest version of Constructor.
> > >Hopefully that'll change shortly...
> > >
> > >Take care,
> > >
> > >Jerry Adair
> > >[EMAIL PROTECTED]
> > >
> > >ps-I am assuming that when they put the latest and greatest Constructor
> > >out for the "public" that those of us who bought CW6 for the Palm (and
> > >I suppose more importantly who have applied and gotten into the PP)
will
> > >be able to get it from within the PP. Is that true?
> > >
> > >
> > >--
> > >For information on using the Palm Developer Forums, or to
> > >unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html