Re: HELP!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Jasper,

In the example attachment I sent earlier (drvfold.jpg) there are 9 images
each of the 9 images are 16x16 pixels (height, width)

If we only had to code one line to bring in this one file
we are at an advantage already. 

To seperate the images we have several options. 

First, MS has made it easy for us to use these by utilizing ImageList 

hImageList = c_func(xImageList_Create,{16,16,ILC_COLOR16,2,10})
  
hBitmap = LoadImage("drvfold.bmp", IMAGE_BITMAP) 
junk = c_func(xImageList_Add,{hImageList,hBitmap,NULL})
c_proc(xDeleteObject, {hBitmap})

Note: I utilized a bitmap in the code.

TreeView and ListView use Imagelist as a standard in most apps. 

The second ofcourse would be to create your own methods.
Im pretty sure someone already has an example on the Eu-contrib page.

All-in-all, the advantages would be less code, typeing, app size,
number of files to carry around and several others Im sure that
dont come to mind right off....

Hope this helps!

Euman
euman at bellsouth.net


----- Original Message ----- 
From: <Jasper_Holshuijsen at dsw.nl>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, October 05, 2001 09:32
Subject: Re: HELP!


> 
> 
> Hi Euman,
> 
> I'm a beginner. I want to place a selection of over 40 bitmaps on the
> screen in a sort of spreadsheet. I've looked at some other programs which
> work on the same principle (BlackJack for example) and they all use "chain
> images".  To me it seems that in this way more coding is involved. What's
> the advantage of a chain image except of having one image instead of 40
> images / files and less disk-reading?
> 
> Bye,
> 
> Jasper.
> 
> 
>                                                                               
>
>                     euman@bellsout                                            
>
>                     h.net                To:     EUforum <EUforum at
>                     topica.com>
>                                          cc:                                  
>
>                     04-10-2001           Subject:     Re: HELP!               
>
>                     00:04                                                     
>
>                     Please respond                                            
>
>                     to EUforum                                                
>
>                                                                               
>
>                                                                               
>
> 
> 
> Rob Kraybill says he's creating 1000 small Toggle Pictures
> I would suggest a chain image
> 
> 1 bitmap many images
> -- Look at the attaches .jpg for an idea....what Im talking about..  Jasper
> / del
> 
> Euman
> euman at bellsouth.net
> 
> ----- Original Message -----
> From: "Judith" <camping at txcyber.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Thursday, October 04, 2001 14:55
> Subject: HELP!
> 
> 
> > I've been working with Rob Kraybill on the bug he found in IDE. What is
> > happening is all system resources on my computer get used up when there
> > are a lot of controls in IDE. This happens even right after a reboot.
> >
> > Can anyone please tell me what kinds of things to look for?
> >
> > Thanks,
> >
> > Judith
> >
> >
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu