Print Page | Close Window

Mapping a xtpControlLabel to a variable

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


Topic: Mapping a xtpControlLabel to a variable
Posted By: LeeHayton
Subject: Mapping a xtpControlLabel to a variable
Date 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



Replies:
Posted By: Oleg
Date Posted: 18 December 2006 at 10:25am
Hi,
CommandBarControl.


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


Posted By: LeeHayton
Date 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



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