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