<?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 : [SOLVED!] Combined Refresh and Stop button?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [SOLVED!] Combined Refresh and Stop button?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:54:06 +0000</pubDate>
  <lastBuildDate>Wed, 30 Dec 2009 11:02:46 +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=15925</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[[SOLVED!] Combined Refresh and Stop button? : Oh, Okay. I see. Don&amp;#039;t feel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55925&amp;title=solved-combined-refresh-and-stop-button#55925</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 30 December 2009 at 11:02am<br /><br />Oh, Okay. I see. Don't feel bad though, everyone makes mistakes ever once in a while.<br>But I'll attempt to try that I suppose. I'm not sure if I'll have any luck on this one since I'm not real familiar with the coding off the top of my head.<br>But, I hope you get that project done! Best of luck!<br>]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 11:02:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55925&amp;title=solved-combined-refresh-and-stop-button#55925</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Sorry, I had the ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55924&amp;title=solved-combined-refresh-and-stop-button#55924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 30 December 2009 at 10:59am<br /><br />Sorry, I had the ReportControl on my mind from another post ;) I meant the CommandBars Ribbon Sample that ships with the CJ controls (in your Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX vX.X.X\Samples\CommandBars\VB\RibbonSample folder, where X.X.X is the version of the suite that you have installed).]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 10:59:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55924&amp;title=solved-combined-refresh-and-stop-button#55924</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Okay man but what are you leaning...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55923&amp;title=solved-combined-refresh-and-stop-button#55923</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 30 December 2009 at 10:57am<br /><br />Okay man but what are you leaning torwards when you say "RC Sample"?]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 10:57:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55923&amp;title=solved-combined-refresh-and-stop-button#55923</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Unfortunately, I don&amp;#039;t have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55921&amp;title=solved-combined-refresh-and-stop-button#55921</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 30 December 2009 at 10:33am<br /><br />Unfortunately, I don't have much time right now to do up a sample as I have a project due very soon.<br><br>Between the RC sample and my explanation above, there should be enough to get started. Why don't you give it a try (maybe in a separate, new project) and when you encounter problems, you can post the project up here with questions (maybe a new thread would be better). I can then try to help with specific problems if I have a bit of time to spare (or others can help too).<br><br>]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 10:33:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55921&amp;title=solved-combined-refresh-and-stop-button#55921</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Okay, that pretty much describes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55910&amp;title=solved-combined-refresh-and-stop-button#55910</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 30 December 2009 at 3:01am<br /><br />Okay, that pretty much describes exactly what I'm looking for jpbro. Is there anyway you could explain that option in further detail or maybe a sample?]]>
   </description>
   <pubDate>Wed, 30 Dec 2009 03:01:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55910&amp;title=solved-combined-refresh-and-stop-button#55910</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : What problems were you having?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55902&amp;title=solved-combined-refresh-and-stop-button#55902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 29 December 2009 at 2:30pm<br /><br />What problems were you having? A database or a text file should be fine for storing bookmarks. You can Add CommandBar controls using the Add method of a CommandBar.Controls object, and then use the Delete method of any CommandBar.Controls.Item object.<br><br>Editing is a bit trickier - You could use the CommandBars1_ControlRButtonUp event to catch when a user right-clicks a control, and then test the Id property to see if the control is one of your Bookmark controls. If so, you could then use the ShowPopup method of a CommandBar object to offer a menu with Edit and Remove buttons. If the user clicks Edit (as caught in the _Execute event), just show a new window and allow them to change the displayed caption. <br><br>]]>
   </description>
   <pubDate>Tue, 29 Dec 2009 14:30:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55902&amp;title=solved-combined-refresh-and-stop-button#55902</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Okay jpbro, you&amp;#039;ve help me...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55881&amp;title=solved-combined-refresh-and-stop-button#55881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 29 December 2009 at 1:15am<br /><br />Okay jpbro, you've help me this far and I really appreciate it. So, let me ask you this:<DIV>I have been trying to implement a "Favorites/Bookmarks" bar into the browser, similar to firefox, chrome, safari, and even IE 8.</DIV><DIV>&nbsp;</DIV><DIV>So far I haven't had any luck whatsoever on this one. I've tried several different ways using a text file, a database and etc.</DIV><DIV>&nbsp;</DIV><DIV>In other words, I would like to have a toolbar that displays the users favorites and the user can edit, delete, and create more bookmarks to the bar at runtime.</DIV><DIV>&nbsp;</DIV><DIV>Have any ideas on this one my friend?</DIV>]]>
   </description>
   <pubDate>Tue, 29 Dec 2009 01:15:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55881&amp;title=solved-combined-refresh-and-stop-button#55881</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Sure, just create a new Action...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55879&amp;title=solved-combined-refresh-and-stop-button#55879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 28 December 2009 at 8:00pm<br /><br />Sure, just create a new Action object and assign it a unique ID...something like:<br><br>In the General Declarations:<br><pre ="BBcode">Private Const mc_ActionGo As Long = 102</pre><br>And then, you will want to change the name of your control reference variable to make more sense:<br><pre ="BBcode">Private mo_StopGoRefresh As XtremeCommandBars.CommandBarControl</pre><br>Then wherever you create your actions, add:<br><pre ="BBcode">With Me.CommandBars1.Actions.Add(mc_ActionGo, "Go", "Go to this URL", "Go to this URL", "Page")<br>   .IconId = ' ID # of GO icon<br>End With<br></pre><br>And then instead of a SwapStopRefresh sub, you might want a SetPageState() sub (as an example):<br><br>First in the General Declarations, create a new enum to indicate the page state:<br><table width="99%"><tr><td><pre class="BBcode"><br>Private Enum e_PageState<br>&nbsp;&nbsp; pagestate_Loaded &nbsp; ' Page is loaded, REFRESH button should be available<br>&nbsp;&nbsp; pagestate_Loading&nbsp;&nbsp; ' Page is loading, STOP button should be available<br>&nbsp;&nbsp; pagestate_DifferentUrl&nbsp;&nbsp;&nbsp; ' User has typed a different URL than the current page URL, GO button should be available<br></pre></td></tr></table><br><br>And then add this sub, and call it with the appropriate page state parameter when your conditions are met:<br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub SetPageState(ByVal p_PageState As e_PageState)<br>&nbsp;&nbsp; Dim l_ActionId As Long<br><br>&nbsp;&nbsp; Select Case p_PageState<br>&nbsp;&nbsp; Case pagestate_Loading<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_ActionId = mc_ActionStop<br>&nbsp;&nbsp; Case pagestate_Loaded<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_ActionId = mc_ActionRefresh<br>&nbsp;&nbsp; Case pagestate_DifferentUrl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l_ActionId = mc_ActionGo<br>&nbsp;&nbsp; Case Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Err.Raise 5, , "Unknown page state."<br>&nbsp;&nbsp; End Select<br><br>&nbsp;&nbsp; Set mo_StopGoRefresh.Action = Me.CommandBars1.Actions.Action(l_ActionId)<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Mon, 28 Dec 2009 20:00:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55879&amp;title=solved-combined-refresh-and-stop-button#55879</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Okay jpbro. Just got finished...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55875&amp;title=solved-combined-refresh-and-stop-button#55875</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 28 December 2009 at 12:44pm<br /><br />Okay jpbro. Just got finished trying that code. It works perfect!<DIV>&nbsp;</DIV><DIV>But, and I apologize, but I have another question for you. :p</DIV><DIV>What if I wanted to do a three button combination?</DIV><DIV>For example, Go, Refresh, and Stop.</DIV><DIV>I think You would have the refresh and stop setup on active forms web browser control and you would then have it set that if the address in the address bar is different from the location URL it would be a go button, otherwise it would be the refresh button.</DIV><DIV>Is there any way in doing that? </DIV>]]>
   </description>
   <pubDate>Mon, 28 Dec 2009 12:44:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55875&amp;title=solved-combined-refresh-and-stop-button#55875</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Combined Refresh and Stop button? : Oh, I see. That definitely makes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55873&amp;title=solved-combined-refresh-and-stop-button#55873</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15925<br /><strong>Posted:</strong> 28 December 2009 at 11:39am<br /><br />Oh, I see. That definitely makes sense. I'll try that asap!<DIV>But I figured the time zones were different. The whole website is setup that way. It's pretty funny actually, I can post a reply at 11:00 and it says I posted it at like 5:14 on the site. <img src="http://forum.codejock.com/smileys/smiley36.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Mon, 28 Dec 2009 11:39:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15925&amp;PID=55873&amp;title=solved-combined-refresh-and-stop-button#55873</guid>
  </item> 
 </channel>
</rss>