Print Page | Close Window

SOLVED: StatusBar .ToolTip Markup

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=11114
Printed Date: 07 October 2024 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: StatusBar .ToolTip Markup
Posted By: chrisABC
Subject: SOLVED: StatusBar .ToolTip Markup
Date Posted: 19 June 2008 at 1:21pm
THIS PROBLEM NOW SOLVED. IT WAS MY ERROR.

I can't get markup to work in a StatusBar Pane.ToolTip

It just displays the XAML string.

This is just testing with simple string cut and pasted from another control (where it works OK).

I have set SB.ToolTipContext.Style = xtpToolTipMarkup
       and    SB.EnableMarkup = True


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: Oleg
Date Posted: 19 June 2008 at 1:57pm
Hi,
 
Just tried in our sample
 
    StatusBar.ToolTipContext.Style = xtpToolTipMarkup
    StatusBar.Pane(2).ToolTip = "<TextBlock>Hi</TextBlock>"
works fine.


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


Posted By: chrisABC
Date Posted: 19 June 2008 at 2:14pm
Oh Dear

I have put:

     SB.Pane(2).ToolTip = "<TextBlock>Hi</TextBlock>"
     SB.Pane(2).Text =  "<TextBlock>Hi</TextBlock>"

The result:

    the statusBar Pane shows    Hi   on screen.
    but     ToolTip displays as   <TextBlock>Hi</TextBlock>


What could I be doing wrong?


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Oleg
Date Posted: 19 June 2008 at 3:27pm
Hi,
 
Attach some sample to show error.
Thhink you don't have StatusBar.ToolTipContext.Style = xtpToolTipMarkup line.


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


Posted By: chrisABC
Date Posted: 19 June 2008 at 5:43pm
Here is cut & Paste from my CreateStatusBar() Sub.

 Dim Pane As StatusBarPane
 Set StatusBar = CommandBars.StatusBar
 StatusBar.Visible = True
 StatusBar.ToolTipContext.Style = xtpToolTipMarkup
 StatusBar.EnableMarkup = True

 Set Pane = StatusBar.AddPane(ID_MONTH)
 Pane.Text = "<TextBlock>Hi</TextBlock>"
 Pane.ToolTip = "<TextBlock>Hi</TextBlock>" 

- - - - - - - - - - - - - - - - - - - - - - - - - -

The Pane.Text  shows     Hi
The ToolTip shows as  <TextBlock>Hi</TextBlock>



-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Oleg
Date Posted: 20 June 2008 at 1:31am
Hi,
 
Attach some sample to show error.
Thhink you don't have StatusBar.ToolTipContext.Style = xtpToolTipMarkup line.


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


Posted By: chrisABC
Date Posted: 20 June 2008 at 4:32am
You are correct  (as usual )

I did have Style = xtpToolTipMarkup  set in the CreateStatusBar Sub,  but I did not see that a different Sub to set Theme was later setting Style = xtpToolTipOffice2007.

Thank you for your Help.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Oleg
Date Posted: 20 June 2008 at 3:08pm

:-) I knew it.



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



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