Print Page | Close Window

no Icon on xtpControlPopup

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=2744
Printed Date: 05 October 2024 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: no Icon on xtpControlPopup
Posted By: jamesblast
Subject: no Icon on xtpControlPopup
Date 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



Replies:
Posted By: Oleg
Date Posted: 18 August 2005 at 4:20am

 

ButtonStyle  parameter must be xtpButtonIconAndCaption



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


Posted By: jamesblast
Date Posted: 18 August 2005 at 4:22am
thank you. that did it



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