Print Page | Close Window

ToolTips in CommandBar

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=10611
Printed Date: 16 June 2025 at 3:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolTips in CommandBar
Posted By: lexicon
Subject: ToolTips in CommandBar
Date Posted: 13 May 2008 at 11:18am
Hello
I have this code but the tooltips aren't display at all
What i have forgotten?
 
    Dim Toolbar As CommandBar
    Dim ControlNew As CommandBarPopup
   
    Set Toolbar = CommandBars.Add("Standard", xtpBarTop)
    CommandBars.ToolTipContext.Style = 4
    CommandBars.Options.LargeIcons = 1
    CommandBars.EnableActions
       
     AddControl Toolbar.Controls, xtpControlButton, 103, "test1", True
    With Toolbar.Controls
            Set ControlNew = .Add(xtpControlSplitButtonPopup, 104, "test")
            ControlNew.CommandBar.Controls.Add xtpControlButton, 105, "test1"
            ControlNew.DescriptionText = "test2"
            ControlNew.CommandBar.Controls.Add xtpControlButton, 106, "test"
            ControlNew.DescriptionText = "test3"
    End With
     Set CommandBars.Icons = ImageManager1.Icons
    CommandBars.Options.UseDisabledIcons = True
    UseDisabledIcons = True
    CommandBars.Options.SetIconSize True, 32, 32
    CommandBars.Options.ShowTextBelowIcons = True
    CommandBars.Options.ShowExpandButtonAlways = False
    CommandBars.VisualTheme = xtpThemeOffice2003



Replies:
Posted By: Oleg
Date Posted: 14 May 2008 at 6:44am
Hi,
 
Just tried with new sample and works for me.
 
What do you have in AddControl  code ?
 
Try to manually assign tooltip for control:
ControlNew.ToolTipText = "ee1"
 
 
also try add
CommandBars.Options.ToolBarScreenTips =True


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


Posted By: lexicon
Date Posted: 15 May 2008 at 12:54pm
I tried ControlNew.ToolTipText = "ee1" and it works
Thank you very much



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