Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Changing Font properties for Label
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing Font properties for Label

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: Changing Font properties for Label
    Posted: 10 September 2008 at 7:17am
Can I change font properties for a label on a commandbar? 

e.g. Dim cbl as CommandBarLabel
 
    Set cbl = .ActiveMenuBar.Controls.Add(xtpControlLabel, 1, "Label Caption Goes Here")
cbl.fontbold = true
 
I basically want to reproduce the kind of control used in Sharepoint (shown below) which displays a popup menu when the drop down is clicked. Is there another control I should be using?
 
 
 
Thanks
Lee
Back to Top
victor View Drop Down
Groupie
Groupie
Avatar

Joined: 04 January 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote victor Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2009 at 12:58pm
Hi,
Was there an answer to this ?
Thanks
Vic
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2009 at 2:07pm
It doesn't look the same as the Sharepoint example, but you could use the xtpControlSplitButtonPopup control to get a clickable arrow button beside your caption. 
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2009 at 5:23am
Yes you can....but then the caption itself acts like a button and not just a label, and I don't think you can change the font, align the text to the left (it centres) or put a line underneath.
 
I ended up just creating a user control built of a label, a line and a commandbarpopup which snaps to the right hand side of the control when resized.
 
Thanks
Lee
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.203 seconds.