Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Mapping a xtpControlLabel to a variable
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mapping a xtpControlLabel to a variable

 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: Mapping a xtpControlLabel to a variable
    Posted: 18 December 2006 at 5:59am
How do I define a variable to SET = to a control created as a type xtpControlLabel?
 
dim myLabel as ? (what type)
 
Thanks
Lee
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: 18 December 2006 at 10:25am
Hi,
CommandBarControl.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 18 December 2006 at 10:44am
 
 
I am trying to create the same effect as above (Caption and Drop Down Triangle only) using the command bar.  I can do it by creating a custom control for the "Announcements" bit and pointing the handle to a label(in a picture box to get a .hwnd) and that works fine.  I would like to have just used the label function for the word and changed the font to Tahoma size 9 - you can do this globally but it effects the drop down menu as well.  So i was hoping to be able to get hold of such properties as font, size, bold, etc for the label.
 
Secondly, the drop down triangle on the right I can mimic by placing an icon (which is a picture of a triangle) in the 2nd control having stetched the 1st control.
 
    Set cbp = .ActiveMenuBar.Controls.Add(xtpControlButtonPopup, ID_DROPDOWN, "")
        cbp.IconId = 1
 
But, how can I use the control's own drop down triangle (don't know it's technical term).
 
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.211 seconds.