<?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: TaskDialog Checkbox messing up text formatting in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11875426#M12851</link>
    <description>&lt;P&gt;Never used a TaskDialog that way (interesting it has scroll bars?) would assume it wasn't designed for that much content and you should instead create your own log results window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems the content is taking on the same width as the checkbox? In WPF they have a shared grids feature that this reminds me of but I don't know that TaskDialogue is using that layout system.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 17:49:16 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2023-04-05T17:49:16Z</dc:date>
    <item>
      <title>TaskDialog Checkbox messing up text formatting</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11874995#M12850</link>
      <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a TaskDialog, displaying some warnings in the model. The problems is that once I introduce a checkbox at the botttom, the text formatting appears messed up. Here is the window prior to introducing the checkbox:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danailmomchilov_0-1680706399038.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1198761i02295DD83038D011/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danailmomchilov_0-1680706399038.png" alt="danailmomchilov_0-1680706399038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's the same window displayed after the checkbox is enabled:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danailmomchilov_1-1680706475056.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1198762i506B8E81E6E1E4BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danailmomchilov_1-1680706475056.png" alt="danailmomchilov_1-1680706475056.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the checkbox appears when there is less information, still messed up but somewhat readable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danailmomchilov_2-1680706580146.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1198763i1560E01E147A9DD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danailmomchilov_2-1680706580146.png" alt="danailmomchilov_2-1680706580146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;TaskDialog errorReport = new TaskDialog("Warnings");
errorReport.MainInstruction = errors;
errorReport.ExtraCheckBoxText = "Експортване ма грешките в текстови файsл на десктопа";
errorReport.Show();
if (errorReport.WasExtraCheckBoxChecked())
{
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "warnings.txt");
File.WriteAllText(path, errors);
}
return Result.Failed;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the checkbox for the export of a .txt file with all the warnings. I could easily use another approach, I was just curious if it's possible to use a checkbox and not mess up the formatting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 15:03:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11874995#M12850</guid>
      <dc:creator>danail.momchilov</dc:creator>
      <dc:date>2023-04-05T15:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: TaskDialog Checkbox messing up text formatting</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11875426#M12851</link>
      <description>&lt;P&gt;Never used a TaskDialog that way (interesting it has scroll bars?) would assume it wasn't designed for that much content and you should instead create your own log results window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems the content is taking on the same width as the checkbox? In WPF they have a shared grids feature that this reminds me of but I don't know that TaskDialogue is using that layout system.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 17:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11875426#M12851</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2023-04-05T17:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: TaskDialog Checkbox messing up text formatting</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11880253#M12852</link>
      <description>&lt;P&gt;Yeap, it seems like it's just taking the checkbox width. But the latter is also not determined in accordance with the checkbox text, I tried introducing a long text without new line and it was still broken in two for some reason. It's weird.. I didn't know about the scroll bar as well &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I might need to create a log window using WPF anyway, but I was just curious. Even with less content though, the formatting is still messed up, so I was also curious as to what determines the overall width of the TaskDialog. By the way the scroll bar also disappears once you enable a checkbox&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 15:10:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/taskdialog-checkbox-messing-up-text-formatting/m-p/11880253#M12852</guid>
      <dc:creator>danail.momchilov</dc:creator>
      <dc:date>2023-04-07T15:10:20Z</dc:date>
    </item>
  </channel>
</rss>

