Print Page | Close Window

Adding icon to CommandBar loses caption

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=3094
Printed Date: 08 July 2024 at 11:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding icon to CommandBar loses caption
Posted By: Shawshank
Subject: Adding icon to CommandBar loses caption
Date Posted: 25 October 2005 at 1:41pm

I have a CommandBar button with a caption. I have added like so:

Set Control = ToolBar.Controls.Add(xtpControlButton, ID_TOOLBAR_HELP, "&Help", False)

When I add an icon to this button I lose the caption. Is it not possible to have both a caption and an icon? I've tried other enumeration types but none allow both.

Shawshank




Replies:
Posted By: Shawshank
Date Posted: 25 October 2005 at 4:32pm

OK, I've got that now with:

Control.Style = xtpButtonIconAndCaption




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