Print Page | Close Window

Ribbon Control ToolTipText

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=13669
Printed Date: 07 October 2024 at 4:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon Control ToolTipText
Posted By: DaveB
Subject: Ribbon Control ToolTipText
Date Posted: 13 March 2009 at 1:29am
I am setting up a Ribbon Control.  When I define a button using:
 
            Set ControlTest = GroupTest.Add(XtremeCommandBars.XTPControlType.xtpControlPopup, ID_TEST_BUTTON, "Test Button", False, False) 
 
I can specify the tool tip text using:

             ControlTest.ToolTipText = CreateHTMLTool("This is a test button", "Use it to test things...")
If I add a button without using the Set command, like this:
 
            GroupTest.Add XtremeCommandBars.XTPControlType.xtpControlButton, ID_TEST_BUTTON, "Test Button", False, False 
 
How do I specify the tool tip text?



Replies:
Posted By: Mr.Den
Date Posted: 16 March 2009 at 11:26am
Try:

GroupTest.FindControl(,ID_TEST_BUTTON).TooltipText = "My Tooltip Text"
 
Hope that helps.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1

Platform: Windows 7 Professional (64bit) - SP 1

Language: Visual Basic 6.0 SP 6



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