Print Page | Close Window

Loading icons in imagemanager...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2479
Printed Date: 06 May 2024 at 6:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Loading icons in imagemanager...
Posted By: Superpippo
Subject: Loading icons in imagemanager...
Date Posted: 29 June 2005 at 10:36am

I have a little problem with codejock 9.60.

In my application i want to change at runtime the icon on a commandcontrol of a toolbar.

In the execute event procedure i reload the icon on the imagemanager but i don't  get the new icon !

The only way to get the new icon on the commandcontrol is to remove all the icons from the imagemanager. But this way to change only a icon i have to remove all the icons linked to all the commandbars and reload all the icons!

Look at the attachment sample code. Pressing on the commandcontrol on toolbar the icon change. Look at the code now, in the execute procedure place a rem in the following line:

 MDIFormMain.ImageManager.Icons.RemoveAll

the code doesn't work!!

Any ideas ?

Thank you and best regards

Superpippo

 

http://forum.codejock.com/uploads/Superpippo/2005-06-29_103640_SampleIconsCodejock.zip - 2005-06-29_103640_SampleIconsCodejock.zip



-------------
SuperPippo



Replies:
Posted By: Oleg
Date Posted: 04 July 2005 at 2:49am

The problem that they have different size 32*32 and 64*64.

Make them same size.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Superpippo
Date Posted: 04 July 2005 at 3:19am

My mistake.

Thanks Oleg.

 



-------------
SuperPippo



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net