<?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 : Popup C&#111;ntrol</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Popup C&#111;ntrol]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 13:29:55 +0000</pubDate>
  <lastBuildDate>Wed, 29 Dec 2004 10:24:47 +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=1540</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[Popup C&#111;ntrol : For reference what I ended up...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1540&amp;PID=4556&amp;title=popup-control#4556</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1540<br /><strong>Posted:</strong> 29 December 2004 at 10:24am<br /><br /><P>For reference what I ended up doing to avoid the crashing was to create a form with nothing on it but a popup control and a timer and used the timer to unload the form when the state&nbsp;state changes. </P><P>You should investigate why it is that a timer can unload the form ok&nbsp;after checking the .state value but an Unload Me&nbsp;inside the&nbsp;state change event will crashe your application.</P><P>I had&nbsp;tried a loop (commented out in code below) but in the end went for the timer option.</P><P>Public Sub ShowReport()<BR>&nbsp;&nbsp;&nbsp; Dim Item As PopupControlItem<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Load formReport<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With formReport.PopupControl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RemoveAllItems<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Animation = xtpPopupAnimationSlide<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AnimateDelay = 256<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowDelay = 2000<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Transparency = 255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .VisualTheme = xtpPopupThemeOffice2003<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = .AddItem(50, 27, 200, 45, "TEST")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Bold = True<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SetSize 270, 100<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Show<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Do While .State &lt;&gt; xtpPopupStateClosed<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DoEvents<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Loop<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Unload formReport<BR>&nbsp;&nbsp;&nbsp; End With<BR>End Sub</P>]]>
   </description>
   <pubDate>Wed, 29 Dec 2004 10:24:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1540&amp;PID=4556&amp;title=popup-control#4556</guid>
  </item> 
  <item>
   <title><![CDATA[Popup C&#111;ntrol : I have written an exe that does...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1540&amp;PID=4412&amp;title=popup-control#4412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=566">Maui</a><br /><strong>Subject:</strong> 1540<br /><strong>Posted:</strong> 16 December 2004 at 4:38pm<br /><br /><P>I have written an exe that does batch processing. It doesnt have a form, it just does the job and then reports the results in a msgbox.</P><P>I had a look at the Popup Control and thought it would make a nice replacement for the standard msgbox I was using.</P><P>My first request to the development team is Can you make this control creatable so that I can late bind it. eg dim PC as new PopupControl</P><P>Since you cant create it like&nbsp;this at the moment I had to add a form so that I could use this object.</P><P>This is what I did.</P><P>Private Sub ShowReport()<BR>&nbsp;&nbsp;&nbsp; Dim PC As XtremeSuiteControls.PopupControl<BR>&nbsp;&nbsp;&nbsp; Dim Item As PopupControlItem<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Load formAbout<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set PC = formAbout.PopupControl<BR>&nbsp;&nbsp;&nbsp; PC.RemoveAllItems<BR>&nbsp;&nbsp;&nbsp; PC.Animation = xtpPopupAnimationSlide<BR>&nbsp;&nbsp;&nbsp; PC.AnimateDelay = 256<BR>&nbsp;&nbsp;&nbsp; PC.ShowDelay = 2000<BR>&nbsp;&nbsp;&nbsp; PC.Transparency = 255<BR>&nbsp;&nbsp;&nbsp; PC.VisualTheme = xtpPopupThemeOffice2003<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set Item = PC.AddItem(50, 27, 200, 45, "TEST")<BR>&nbsp;&nbsp;&nbsp; Item.Bold = True<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; PC.SetSize 270, 100<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; PC.Show<BR>End Sub</P><P>That worked fine except obviously formAbout is still loaded.</P><P>I cant unload the form in that Sub because unloading it also closes the PopupControl.</P><P>So I put this code in formAbout thinking it would unload the form when the popup control closed.</P><P>Private Sub PopupControl_StateChanged()<BR>&nbsp;&nbsp;&nbsp; If PopupControl.State = xtpPopupStateClosed Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unload Me<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</P><P>What actually happens is that my application crashes.</P><P>Any thoughts on how I could best achieve my goal? or why the IDE crashes when I unload the form?</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 16 Dec 2004 16:38:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1540&amp;PID=4412&amp;title=popup-control#4412</guid>
  </item> 
 </channel>
</rss>