<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to do text justification in a TextBox with Markup? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352505#M60191</link>
    <description>&lt;P&gt;If the issue is as the previous example demonstrated, good solutions don't really come to mind. Maybe you could try playing around modifying the Width of textbox and adding SpacerBox before it. No idea how well this would work in the long run.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
win = New Window("Example", V List Box(Align(right),
	Spacer Box(Size(1400,0)),
	fontobj = text = Text Box("This is bold text. This is italic text. This is underlined text. This is bold, italic, underlined text.")));
text &amp;lt;&amp;lt; Set Width(500);
text &amp;lt;&amp;lt; Justify Text("right");
text &amp;lt;&amp;lt; setText(
	"This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;i&amp;gt;italic&amp;lt;/i&amp;gt; text. This is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;bold, italic, underlined&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text."
);
wait(2);
text &amp;lt;&amp;lt; markup;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 17:24:15 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-01-25T17:24:15Z</dc:date>
    <item>
      <title>How to do text justification in a TextBox with Markup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352119#M60142</link>
      <description>&lt;P&gt;I noticed that if text box has Markup enabled, then Text Justification property is ignored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the text to be right justified, and it just doesn't work. But as soon as I turn off markup - it aligns correctly.&lt;/P&gt;&lt;P&gt;Is it a bug?&lt;/P&gt;&lt;P&gt;Is there a way to justify marked up text using markup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:10:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352119#M60142</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-11T11:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to do text justification in a TextBox with Markup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352168#M60145</link>
      <description>&lt;P&gt;This might give some idea what is going on. With markup the "extra" characters are still most likely there even if you don't see them and it looks like it won't align properly.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
win = New Window("Example", V List Box(Align(right),
	fontobj = text = Text Box("This is bold text. This is italic text. This is underlined text. This is bold, italic, underlined text.")));
text &amp;lt;&amp;lt; Set Width(1400);
text &amp;lt;&amp;lt; Justify Text("right");
Wait(2);
text &amp;lt;&amp;lt; setText(
	"This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;i&amp;gt;italic&amp;lt;/i&amp;gt; text. This is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;bold, italic, underlined&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text."
);
wait(2);
text &amp;lt;&amp;lt; markup;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 08:02:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352168#M60145</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-23T08:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to do text justification in a TextBox with Markup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352504#M60190</link>
      <description>&lt;P&gt;This was a perfect demonstration! Looks like a bug to me - or at least the behavior is totally unexpected. Any workaround for this?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:01:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352504#M60190</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2021-01-25T17:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to do text justification in a TextBox with Markup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352505#M60191</link>
      <description>&lt;P&gt;If the issue is as the previous example demonstrated, good solutions don't really come to mind. Maybe you could try playing around modifying the Width of textbox and adding SpacerBox before it. No idea how well this would work in the long run.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
win = New Window("Example", V List Box(Align(right),
	Spacer Box(Size(1400,0)),
	fontobj = text = Text Box("This is bold text. This is italic text. This is underlined text. This is bold, italic, underlined text.")));
text &amp;lt;&amp;lt; Set Width(500);
text &amp;lt;&amp;lt; Justify Text("right");
text &amp;lt;&amp;lt; setText(
	"This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;i&amp;gt;italic&amp;lt;/i&amp;gt; text. This is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;bold, italic, underlined&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text."
);
wait(2);
text &amp;lt;&amp;lt; markup;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:24:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-do-text-justification-in-a-TextBox-with-Markup/m-p/352505#M60191</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-25T17:24:15Z</dc:date>
    </item>
  </channel>
</rss>

