<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Resize dialog to match markup content</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : MarkupLabel Control : Resize dialog to match markup content]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 20:12:48 +0000</pubDate>
  <lastBuildDate>Mon, 25 Jul 2011 22:11:10 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=18701</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Resize dialog to match markup content : No problem, glad to help. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65469&amp;title=resize-dialog-to-match-markup-content#65469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 18701<br /><strong>Posted:</strong> 25 July 2011 at 10:11pm<br /><br />No problem, glad to help.]]>
   </description>
   <pubDate>Mon, 25 Jul 2011 22:11:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65469&amp;title=resize-dialog-to-match-markup-content#65469</guid>
  </item> 
  <item>
   <title><![CDATA[Resize dialog to match markup content : Thanks, exactly what I was looking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65429&amp;title=resize-dialog-to-match-markup-content#65429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6616">roan98dk</a><br /><strong>Subject:</strong> 18701<br /><strong>Posted:</strong> 22 July 2011 at 10:17am<br /><br />Thanks, exactly what I was looking for <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br><br>I had to lock markup width to match dialog static text width, but after that it works perfectly.<br>]]>
   </description>
   <pubDate>Fri, 22 Jul 2011 10:17:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65429&amp;title=resize-dialog-to-match-markup-content#65429</guid>
  </item> 
  <item>
   <title><![CDATA[Resize dialog to match markup content : &amp;gt;I have looked at the CXTPM...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65426&amp;title=resize-dialog-to-match-markup-content#65426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 18701<br /><strong>Posted:</strong> 22 July 2011 at 9:23am<br /><br />&gt;&nbsp;<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">I have looked at the CXTPMarkupUIElement::GetDesiredSize() and similar methods but they do not return a size until the dialog is fully drawn...</span><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Could you measure the markup directly, and then size the dialog accordingly? Something like this (error handling stripped for brevity):<br></span><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">CXTPMarkupContext* pContext = XTPMarkupCreateContext(0);</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">CXTPMarkupUIElement* pElement = pContext-&gt;Parse("Your markup here");</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><div>CSize sz = XTPMarkupMeasureElement(pElement);</div><div>pElement-&gt;Release();</div><div><br></div><div>Then set dialog size based upon markup dimensions?</div></span></div></div>]]>
   </description>
   <pubDate>Fri, 22 Jul 2011 09:23:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65426&amp;title=resize-dialog-to-match-markup-content#65426</guid>
  </item> 
  <item>
   <title><![CDATA[Resize dialog to match markup content : I have a simple CXTPDialog with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65393&amp;title=resize-dialog-to-match-markup-content#65393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6616">roan98dk</a><br /><strong>Subject:</strong> 18701<br /><strong>Posted:</strong> 21 July 2011 at 12:12pm<br /><br />I have a simple CXTPDialog with a single large CXTPMarkupContext area. <br><br>Is there a simple way to resize the dialog to fit the content of the CXTPMarkupContext area?<br><br>I have looked at the CXTPMarkupUIElement::GetDesiredSize() and similar methods but they do not return a size until the dialog is fully drawn. I try to resize in the OnInitDialog part of the dialog initialization, but perhaps that is the problem?<br><br>I am basically using the CMarkupStaticclass from the MarkupSample in ToolkitPro v.15.0.2.<br><br>Regards<br>Ronnie<br> ]]>
   </description>
   <pubDate>Thu, 21 Jul 2011 12:12:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18701&amp;PID=65393&amp;title=resize-dialog-to-match-markup-content#65393</guid>
  </item> 
 </channel>
</rss>