Print Page | Close Window

Change submenu caption to icon in tearoff toolbar?

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=6564
Printed Date: 12 November 2025 at 9:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change submenu caption to icon in tearoff toolbar?
Posted By: MichaelN
Subject: Change submenu caption to icon in tearoff toolbar?
Date Posted: 05 March 2007 at 3:42pm
I have a tearoff menu that turns into a toolbar. The menu has a popup with a caption for a submenu. When the toolbar appears it shows icons for all buttons except the submenu caption. How do I get rid of the submenu caption and make it an icon like the other toolbar buttons?

I figure I am supposed to do this inside the WM_XTP_TEAROFFDONE handler. I have that working and it gets called by the tearoff. The problem is that I don't know how to change the caption to an icon inside that handler. I don't see any examples of how to do that.

Michael



Replies:
Posted By: Oleg
Date Posted: 06 March 2007 at 1:40am
Hi, I think there is no icon for this sublemenu.
By default all submenus has id = -1
 
in WM_XTP_TEAROFFDONE handle, find this control, set its id -> pControl->SetId(Id); and set style pControl->SetStyle(xtpButtonIcon);


-------------
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