Print Page | Close Window

Change icon in the Coolmenu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=896
Printed Date: 25 December 2024 at 9:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change icon in the Coolmenu
Posted By: Gian
Subject: Change icon in the Coolmenu
Date Posted: 29 June 2004 at 3:12am
Hello,
i'm trying to do a menu item that allow to connect or disconnect the program to a remote server. When it's disconnected the item has an icon and a "Connect" text, and with the same logic when the program is connected the item has another icon and "Disconnect" text. I've changed the text using

menu->ModifyMenu(ID_FILE_CONNECT, MF_BYCOMMAND, ID_FILE_CONNECT, "Disconnect");

and works butfor the bitmap  if i try to use

menu->SetMenuItemBitmaps(ID_FILE_CONNECT, MF_BYCOMMAND, &m_ConnectedBitmap, &m_ConnectedBitmap);

there's no change of the icon of the item.
There's some way to change on fly the icon?

Thanks



Replies:
Posted By: ICBM
Date Posted: 04 July 2004 at 10:58pm
I do this using XTPImageManager()->SetIcon(. It needs an icon rather than a bitmap, but works well.

Ian

 




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