Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - no Icon on xtpControlPopup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

no Icon on xtpControlPopup

 Post Reply Post Reply
Author
Message
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Topic: no Icon on xtpControlPopup
    Posted: 18 August 2005 at 2:41am
Hello,

I run this code:
Set Control = AddControl(ControlFile.CommandBar.Controls, xtpControlPopup, MENU_History, "&History", True)

Public Function AddControl(Controls As CommandBarControls, ControlType As XTPControlType, ID As Long, Caption As String, Optional BeginGroup As Boolean = False, Optional DescriptionText As String = "", Optional ButtonStyle As XTPButtonStyle = xtpButtonAutomatic, Optional Category As String = "Controls", Optional InitialAddition As Boolean = True) As CommandBarControl
    Dim Control As CommandBarControl
    Set Control = Controls.Add(ControlType, ID, Caption)
    Control.ID = ID
...
end function

everything works finde, BUT, i dont get an Icon for this xtpControlPopup. All other Icons work fine, but not on xtpControlPopup.

what am i doing wrong?

thank you
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 August 2005 at 4:20am

 

ButtonStyle  parameter must be xtpButtonIconAndCaption

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2005 at 4:22am
thank you. that did it
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.125 seconds.