Print Page | Close Window

Display Icon and Caption Not Working

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


Topic: Display Icon and Caption Not Working
Posted By: AQue
Subject: Display Icon and Caption Not Working
Date Posted: 18 December 2006 at 9:52am
Hi
 
I require the Menu Button to have both the icon and the Caption I am using the following Code with Visual Basic 2005
 
After running the Following Code I only get the Icon and not both The icon and the Caption what am I doing wrong
 
Please Help
 
Dim Control as XtremeCommandBars.CommandBarControl
Dim ToolBar As XtremeCommandBars.CommandBar

ToolBar = CommandBars.Add("Standard", XTPBarPosition.xtpBarTop)

With ToolBar.Controls

.Add(XTPControlType.xtpControlButton, 100, "Menu")

Control.Style = XTPButtonStyle.xtpButtonCaption

End With

CommandBars.Icons = ImageManager.Icons

Cheers

AQue



Replies:
Posted By: Oleg
Date Posted: 18 December 2006 at 10:24am
Hi,
You set xtpButtonCaption style but see only Icon? try  xtpButtonIconAndCaption....


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


Posted By: Oleg
Date Posted: 18 December 2006 at 10:24am
Actually I don't see where you set Control?
 
Set Control = .Add(XTPControlType.xtpControlButton, 100, "Menu")


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


Posted By: AQue
Date Posted: 19 December 2006 at 1:41am
Thanks
 
It now works



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