PDA

View Full Version : Solved: RibbonX XML: How can I put in a carriage return or new line within " " marks



dschmitt
07-07-2010, 09:57 PM
In a screentip I want to separate two paragraphs of text by a empty line.
To do that I need to add a new line or a couple CRs. How do I do that?

Example:
screentip="Hi, how are you doing. Thank you I am fine."

The above line gives me:
Hi, how are you doing. Thank you I am fine.

What I want is:
Hi, how are you doing.

Thank you I am fine.

Paul_Hossler
07-08-2010, 05:50 PM
Try


screentip="Hi, how are you doing.$$Thank you I am fine."


where each $ = ampersand pound 13 semicolon (no spaces)

Actually putting the into the VBA tags got processed, and the code was not displayed



Paul

gmaxey
07-09-2010, 03:32 AM
In the RibbonX:

Like Paul explains.

Or via callback:

Sub GetSuperTip(Control As IRibbonControl, ByRef supertip)
supertip = "Super tip text line 1" & vbCr + vbCr & _
"Super tip text line 2."
End Sub

dschmitt
07-11-2010, 06:13 PM
thanks Paul, thanks gmaxey.

One addition:
Screentips do not handle multiple lines. But Supertips do.