<?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 : ReCreateReparented property</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : ReCreateReparented property]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 22:00:14 +0000</pubDate>
  <lastBuildDate>Thu, 17 Nov 2016 04:30:54 +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=23196</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[ReCreateReparented property :   Customer wrote:We also have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75348&amp;title=recreatereparented-property#75348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23196<br /><strong>Posted:</strong> 17 November 2016 at 4:30am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Customer" alt="Originally posted by Customer" style="vertical-align: text-bottom;" /> <strong>Customer wrote:</strong><br /><br /><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;">We also have a weird problem with our MDI child forms.&nbsp;When we set the MdiParent of the form to our MDI form, all of the standard form and control events that usually gets fired simply vanishes and does not get fired.&nbsp;All we do is use the following statement to set the MDI parent</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;">objForm.MdiParent = this.frmMDI;</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;">And this gets done after the form constructor is completed and returned. By doing this, the entire application and form code goes crazy and nothing seems to fire in the order that it should fire.&nbsp;Can you please let us know if there is anything special that we need to do before these code lines.&nbsp;</span><br></td></tr></table><br><span style="line-height: 16.8px;"><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by </span>Alexander Stoyan<span style=line-height: 16.8px;>" alt="Originally posted by </span>Alexander Stoyan<span style=line-height: 16.8px;>" style="vertical-align: text-bottom;" /> <strong></span>Alexander Stoyan<span style=line-height: 16.8px;> wrote:</strong><br /><br /></span><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">We identified what causes this issue and Codejock components have nothing to do about this problem, neither your implementation. There are in fact 2 known issues causing this:</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">1. MDI windows in WinForms are designed in such a way they create an MDI child form without a parent window and then assign a parent window to it, something similar happens to all controls on an MDI child form - at the moment a control's window is created the parent handle is set to some internal window and later parent window changes for the control.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">2. As long as some Codejock components are derived from standard Windows components, they derive the way those controls handle re-parenting. Some of them cache parent window handle on creation, some update later if WS_CHILD is changed, but all works differently. Here is exactly the problem we have with Edit control in this scenario - http://stackoverflow.com/questions/30708760/edit-control-doesnt-generate-wm-command-messages, so as you can see there is nothing we can really do about it.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">However we did manage to do something. For the next update we have added a new optional behavior for re-parenting to all controls, by default it is disabled but it can be enabled either per control, e.g. myButton.ReCreateReparented = True or globally for all components from 1 library, e.g. SuiteControlsGlobalSettings.ReCreateReparentedControls = True. Every time a control is re-parented it checks both of the flags and if at least one is True the control re-creates itself for a new parent window handle. That was the only way to overcome this problem.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">However this approach has a side effect - if a control has been configured and data added before re-parenting re-creating it will reset its state and data. For this purpose we have added a special event for each control that can be re-parented and it's called Recreated. The event handler can restore control state, e.g. your sample can be modified this way:</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;public Form1()</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;{</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InitializeComponent();</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// This enables control re-creating on re-parenting.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new XtremeSuiteControls.SuiteControlsGlobalSettingsClass().ReCreateReparentedControls = true;</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// OR</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//this.axComboBox1.ReCreateReparented = true;</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//this.axFlatEdit1.ReCreateReparented = true;</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// This is to ensure combobox will contain all data if re-created.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.axComboBox1.ReCreated += (sender, e) =&gt; FillComboboxData();</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// This is to ensure combobox will contain all data if not re-created.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FillComboboxData();</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;}</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;void FillComboboxData()</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;{</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("asfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("basfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("casfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("dasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("easfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("fasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("gasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("hasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("iasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("jasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axComboBox1.AddItem("kasfasd");</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; line-height: normal; : rgb204, 204, 204;">&nbsp;&nbsp;&nbsp;&nbsp;}</span><br><span style="line-height: 16.8px;"></td></tr></table>&nbsp;</span>]]>
   </description>
   <pubDate>Thu, 17 Nov 2016 04:30:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75348&amp;title=recreatereparented-property#75348</guid>
  </item> 
  <item>
   <title><![CDATA[ReCreateReparented property : Thanks.Is it logical to let the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75346&amp;title=recreatereparented-property#75346</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23196<br /><strong>Posted:</strong> 16 November 2016 at 4:52pm<br /><br />Thanks.<div>Is it logical to let the user (us) access this property ? In other words, when should I use it ?</div>]]>
   </description>
   <pubDate>Wed, 16 Nov 2016 16:52:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75346&amp;title=recreatereparented-property#75346</guid>
  </item> 
  <item>
   <title><![CDATA[ReCreateReparented property : Hi,ReCreateReparented property...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75321&amp;title=recreatereparented-property#75321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23196<br /><strong>Posted:</strong> 11 November 2016 at 9:20am<br /><br />Hi,<br><br>ReCreateReparented property (of every control which derived from CXTPOleControl) relates to &nbsp;<a href="http://msdn.microsoft.com/library/53e95299-38e8-447b-9c5f-a381d27f5123.aspx#colec&#111;ntrol__reparentc&#111;ntrolwindow" target="_blank" rel="nofollow">COleControl::ReparentControlWindow</a><br><br>There are some problems with standard method, so we add own implementation.&nbsp;If set this property to True or&nbsp;<span style="line-height: 16.8px;">ReCreateReparentedControls property in</span>&nbsp;GlobalSettings (e.g. Codejock.ShortcutBarGlobalSettings) then &nbsp;will be used our implementation, else standard.<br><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Fri, 11 Nov 2016 09:20:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75321&amp;title=recreatereparented-property#75321</guid>
  </item> 
  <item>
   <title><![CDATA[ReCreateReparented property : Hi,Can someone explain me what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75318&amp;title=recreatereparented-property#75318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 23196<br /><strong>Posted:</strong> 10 November 2016 at 5:46pm<br /><br />Hi,<div><br></div><div>Can someone explain me what is the "recreatereparented" property ?</div><div>The help tells nothing about it.</div><div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Thu, 10 Nov 2016 17:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23196&amp;PID=75318&amp;title=recreatereparented-property#75318</guid>
  </item> 
 </channel>
</rss>