Print Page | Close Window

Icon of xtpControlLabel

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=6160
Printed Date: 21 December 2024 at 9:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icon of xtpControlLabel
Posted By: s.neu
Subject: Icon of xtpControlLabel
Date Posted: 19 January 2007 at 5:58am
Hello,

It seems that labels have to have an icon. If I state none it grabs
one. I would set the Style, but only buttons have this property.
How do I tell a xtpControlLabel to show no icon?

Thanks.




Replies:
Posted By: Oleg
Date Posted: 19 January 2007 at 6:36am

Hi,

Labels also have Style property. Set it to xtpButtonCaption.


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


Posted By: s.neu
Date Posted: 19 January 2007 at 7:44am
Hi,

The Add-Method of CommandBarControls returns a CommandBarControl.
Doing sth. like this

    Dim cbb As CommandBarButton
    [...]
        Set cbb = .Add(xtpControlButton, 100, "sth.")

I would expect an error (type mismatch), but it works. This instead

    Set cbb = .Add(xtpControlLabel, 100, "sth.")

causes this error so I have to do

    Dim ccc As CommandBarControl
    Set cbb = .Add(xtpControlLabel, 100, "sth.")

and guess: no Style-Property! Only CommandBarButton/Combobox/Popup
have it and there's no CommandBarLabel...

Depends this on the version? I'vs 9.80



    
 


Posted By: Oleg
Date Posted: 19 January 2007 at 3:05pm
Hi,
yes, it was added after. You can change Id of button to some Id that don;t have corresponded Icon.


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



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