Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Display Icon and Caption Not Working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display Icon and Caption Not Working

 Post Reply Post Reply
Author
Message
AQue View Drop Down
Newbie
Newbie
Avatar

Joined: 18 December 2006
Location: South Africa
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote AQue Quote  Post ReplyReply Direct Link To This Post Topic: Display Icon and Caption Not Working
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2006 at 10:24am
Hi,
You set xtpButtonCaption style but see only Icon? try  xtpButtonIconAndCaption....
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AQue View Drop Down
Newbie
Newbie
Avatar

Joined: 18 December 2006
Location: South Africa
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote AQue Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 1:41am
Thanks
 
It now works
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.