![]() |
Reserved Image IDs |
Post Reply ![]() |
Author | ||
briansweat ![]() Groupie ![]() Joined: 04 December 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 04 December 2008 at 2:49pm |
|
I'm just getting started with an ImageManager that will initially contain over 80 icons. I was planning on using a five digit number, where the first digit represents the category (in our application). For example, 10001, 10002, 20001, 20002, 20003, etc.
I recall seeing some comments about a few reserved IDs, but I can't find that list anywhere. Can someone point me to that? |
||
SuitePro 2008 version 12.1.0, VB 6.0 SP6
Brian Sweat Alterity, Inc. www.acctivate.com twitter.com/briansweat |
||
![]() |
||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|
Hello,
Try avoid range from 9000 to 10000.
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
briansweat ![]() Groupie ![]() Joined: 04 December 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
|
Thanks! I started with 10001, so that's perfect!
|
||
SuitePro 2008 version 12.1.0, VB 6.0 SP6
Brian Sweat Alterity, Inc. www.acctivate.com twitter.com/briansweat |
||
![]() |
||
braian87b ![]() Groupie ![]() Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
|
Can i ask to you why to do this? i have been problems time ago... because i have a imagemanager1 in a form1 and a imagenager2 in form2 then, if whant to load the iconid 101 from imagemanager2 in form2... it loads the iconid101 from imagemanager1... this is a bug or what??? what is the reason of this?... since the, i have to control the id's of the imagemanagers of the entire proyect to avoid duplicates that could perform a mistake. :( ![]() |
||
Product: Xtreme SuitePro (ActiveX) version 11.
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP 6 Spanish, Espa�ol, English. Argentina |
||
![]() |
||
briansweat ![]() Groupie ![]() Joined: 04 December 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
|
I'm not sure what the 9000 to 10000 IDs are for, but I will comment on using multiple ImageManager controls.
We have many forms that have a "Save" CommandBar control. Instead of duplicating those icons on each form, we found it easier to just have a single ImageManager. The ImageManager is on an invisible form. We can easily update an icon in one place and it will immediately update all controls throughout our application. We've used the same approach for images on PushButton controls. When each form loads, we call a global routine that sets the Icon based on an ID parameter. It retrieves the icon using the Icons.GetImage() method of the ImageManager. I'm not sure if that helps, but I wanted to share my experience. |
||
SuitePro 2008 version 12.1.0, VB 6.0 SP6
Brian Sweat Alterity, Inc. www.acctivate.com twitter.com/briansweat |
||
![]() |
||
braian87b ![]() Groupie ![]() Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
|
Yes, it helps but as a tecnique for centralize a resource (image-icon) to improve the modifications and memory usage... What i have did say is:
I mean: that is a bug i think... because it happens when the proyect is compiled and not when is in VB IDE. It seems like their share the id's in the entire proyect exe. Understand?? |
||
Product: Xtreme SuitePro (ActiveX) version 11.
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP 6 Spanish, Espa�ol, English. Argentina |
||
![]() |
||
briansweat ![]() Groupie ![]() Joined: 04 December 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
|
Ah, okay. I guess I didn't run into this since we use unique Icon IDs across the entire application. I'm using a 5 digit ID, where the first two digits represent the component and the last 3 identify the specific icon. That way, we can add more icons into a particular component and keep them together in the group.
Here's an example of our list....
With this example, I would use Icon_Sales_Order for the MDIMenu, the CommandBar on the MDI and any PushButton controls that need to display a sales order. |
||
SuitePro 2008 version 12.1.0, VB 6.0 SP6
Brian Sweat Alterity, Inc. www.acctivate.com twitter.com/briansweat |
||
![]() |
||
braian87b ![]() Groupie ![]() Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
|
I know that could be do in that way... BUT I WANT TO KNOW the reason of the bug that i described. that's all! |
||
Product: Xtreme SuitePro (ActiveX) version 11.
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP 6 Spanish, Espa�ol, English. Argentina |
||
![]() |
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 |