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

Icon of xtpControlLabel

 Post Reply Post Reply
Author
Message
s.neu View Drop Down
Groupie
Groupie


Joined: 31 October 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote s.neu Quote  Post ReplyReply Direct Link To This Post Topic: Icon of xtpControlLabel
    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.

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: 19 January 2007 at 6:36am

Hi,

Labels also have Style property. Set it to xtpButtonCaption.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
s.neu View Drop Down
Groupie
Groupie


Joined: 31 October 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote s.neu Quote  Post ReplyReply Direct Link To This Post 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



    
 
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: 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
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.250 seconds.