Print Page | Close Window

Easy way to get a menu with icons

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=10784
Printed Date: 01 March 2025 at 3:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Easy way to get a menu with icons
Posted By: coretech
Subject: Easy way to get a menu with icons
Date Posted: 26 May 2008 at 5:32pm
Hi XTP gurus. I have a simple application, with a tray icon and no main window. Currently the tray icon menu pops up but it doesn't show any icons; how do I get those to show up?

I know I must make a link between images and commands and tell the menu about it, but I am at a loss for where and how.

Strangely, the TrayIconDemo sample shows icons in its tray menu but the TryIconDlg sample does not...

Thanks for reading.





Replies:
Posted By: Oleg
Date Posted: 27 May 2008 at 12:58am

Hi,

You need add icons to ImageManager:
 
XTPImageManager()->SetIcons(...);


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



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