ImageManager replacement for ImageList? |
Post Reply |
Author | |
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
Posted: 21 October 2005 at 8:47am |
Is the ImanageManager control CodeJock's replacement for the VB6 ImageList? I'm guessing not as it doesn't appear to support some of the same methods as the ImageList but I'm not clear on what the differences are --even after reading through the help. Could someone shed additional light on the key differences? For example, must they be used in concert with one another or is one a direct replacement for the other. Shawshank |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
One advantage would be support for 32-bit alpha icons, another would be the ability to have a normal, hot, and disabled icon for each control, another would be the ability to have multiple image sizes for the toolbars. You can also use these images with most of the other codejock controls. You can even "mirror" images when using RTL mode.
It is designed to be used instead of the ImageList even though the methods\properties are different. Hope this helped. |
|
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Perhaps you can enlighten me on the proper use of the ImageManager. I want to add all of my icons to the ImageManager control at design time (VB6). All of my icons are BMPs --not muliple icons in a single BMP but single icons. So to add them to the ImageManager I select Import/Export and then Import from Bitmap. I then browse to the 16x16 BMP file and select it. This drops me to a dialog titled "Import" where the icon is visible. I have four options ID, State, Device & Mask Color. ID value cannot be changed and has no value. The other values are proper so I select the Import button. This drops me back to the ImageManager Property Page where the icon does not appear. Why? Now, if I select the "New" icon on the Property Page I can set a value for ID. So just for fun I enter a 1. After selecting OK I'm dropped back to the ImageManager Property Page where I now see several icons --none of which are the icon I attempted to import! Why would that be? Not one of the icons now labeled as Normal, Hot, Disabled & Checked even come close to being the icon I imported. Why is that? Where did these icons come from? If try the process all over again in an attempt to add additional icons I cannot. No additional icons will ever appear --only the ones that I do not want nor know how they got in the ImageManager? Any insight would be greatly appreciated. Shawshank |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
When importing the icon, you have to "click" on the picture of the icons when it is displayed. You will then see some highlighting as to which part of the icon you are importing.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
If you still have problems, tomorrow I will throw together a tutorial with pictures on how to do this.
|
|
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
I'm afraid that doesn't work for me. When I import I'm importing a single image (versus a BMP file that has multiple images). After I browse and select it and then am dropped back to the Import dialog where I can see the single icon I then click it. This causes a black rectangle to appear around it as a visual cue that I have selected it. I then click the Import button. Again, nothing appears in the Property Page window. If I then select the New Icon button and provide a integer value and select OK I then can see several icons --none of which are the icon I selected. So what part of what I am doing is not correct? Where do these phantom icons come from? I could understand if it was making for me Hot, Selected & Disabled icons but like I said, the icons that appear are not even remotely similar to what I imported. What gives?
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Can you send me the bmp file you are trying to import? also some
screen shots of the mystery icons that appear. thanks
|
|
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
The forum software will not allow me to upload a BMP file. I'd be happy to email it to you. Here you see the initial dialog showing no icons are present. I then select the Import and Export button and then Import from Bitmap... Note that I have selected the image. The ID value cannot be changed. I do not change any thing further on this dialog and dismiss it with the Import button. Now I'm dropped back to the Property Page dialog where no icons are present. I now select the "New Icon" button. Which gives me this dialog. I enter a value of i for the ID field. I then select the OK button which then drops me back to the Property Page dialog... ...where I now have some icons --but they don't look anything like the one I added! Why? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Ok, I see your problem.
You must first add the icon and give it an ID. This is done by clicking the white document icon next to the scissors icon. You do this for the ID of each icon you will add. This will give you the red circle "default" icons you are seeing in the last picture. Now you click the Import and Export button. After you select your bitmap, you click the section of the bitmap you want to add, then you select the ID to assign it from the ID drop-down menu. So it looks like you did this backwards. Soyou would do steps in picture 4 and 5, then do picture 3 and select the id of "1" that you entered. Hope this helps. |
|
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
Many thanks! That was indeed the problem.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Here is the Tutorial I mentioned....This is for anyone else that might have trouble. Question:
Answer:
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |