Changing Font properties for Label |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
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
|
|
victor
Groupie Joined: 04 January 2006 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Hi,
Was there an answer to this ? Thanks Vic |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
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 |
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |