Best to stick with loading resources from external BMP files for now. I
can't predict how quickly this will be fixed.

>I tried a resource viewing tool to peek at the resources in the compiled
>EXE.  What I see there are the bitmaps I added, with names the same as
>their resource Name property values in the IDE (UCased as suggested).
>
>So I have my resID values ("B" and "S" here) and I tried using them as in:
>
>NSListView1.Icons.LoadResource , "B", 0
>NSListView1.SmallIcons.LoadResource , "S", 0
>NSListView1.ColumnHeaderIcons.LoadResource , "S", 0
>
>Upon testing however I get:
>
>"ListView - line 18, char 0 Failed to load the specified bitmap resource."
>
>Just picking numbers at random I tried using 0 (failed) and then 1 as an
>Integer resID.  Using an Integer 1 "worked" in the sense there was no
>runtime error, but the resulting display had monochrome messed up images
>for these icons.
>
>Note that the LoadBitmap() method (loading from a file) is working fine
>however.  I'm left with the assumptions that:
>
>(1.) I'm still doing something wrong, or
>(2.) The ListView's embedded NSBImageList objects don't work with their
>LoadResource() method, or
>(3.) LoadResource() requires an Integer resID and not a String, and I
>have no way to assign an Integer using the IDE.
>
>I've been using TechNote 11 and 12 as references.
>
>So when you get the chance it would be helpful if you could track down
>the proper syntax for this.  There must be a working example someplace. 
>Short-term I'll go back to loading images from external .BMP files.
>
>Thank you.
>
>
>--- In [email protected], "George Henne" <g...@...> wrote:
>>
>> Good call - yes, it should have been F5 in the first instance.
>> 
>> Try changing the Name to all caps. My memory is a bit hazy, but I think
>> that might be required.
>> 
>> >Seems a safe bet there was a typo there, i.e. use an F5 if you add an
>> >Installer File, else F6 is enough.
>> >
>> >While we're talking about resources, NSBImageList.LoadResource() calls
>> >need a resID parameter that can be a String or Integer.  Fine.  But how
>> >are things like bitmap resources added to the project itself assigned ID
>> >values?
>> >
>> >I've tried using the Name property the IDE assigns to the resource after
>> >doing Add Resource.  This doesn't seem to be the right value and I do
>> >not see anything else that might serve as an ID property I can set on
>> >each resource in the IDE.
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.

Reply via email to