<?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 : ActiveX Versi&#111;n Tutorial?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : ActiveX Versi&#111;n Tutorial?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:27:39 +0000</pubDate>
  <lastBuildDate>Sun, 15 Feb 2004 00:46:20 +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=328</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[ActiveX Versi&#111;n Tutorial? : To add a tabbed workspace is really...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=328&amp;PID=1026&amp;title=activex-version-tutorial#1026</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 328<br /><strong>Posted:</strong> 15 February 2004 at 12:46am<br /><br />To add a tabbed workspace is really easy, add these two lines of codeto the Form_Load of your main application after the command bar isloaded or created via code:&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim Workspace As ITabworkspace<br>&nbsp;&nbsp;&nbsp; Set Workspace = CommandBars.ShowTabWorkspace(True)<br>Remember, this will only work in a MDI application.<br><br>As far as a how to , it depends on your preference.&nbsp; Do you wantto use the designer to create your command bar, or create it via code?<br><br>To create a command bar with the designer is very simple (Reffering tothe customizable example).&nbsp; First design your command bar in thedesigner and click on the CommandBars menu selection then click theRecource Symbols selection.&nbsp; Click the Import button and it willcreate a recource .bas file you need to include in your VBapplication.&nbsp; This file contains the control IDs that will be usedto associate the icons with controls and you use these IDs in yourcode.&nbsp; To load your .xcb file created in the designer add thiscode to your Form_Load:<br>&nbsp;&nbsp;&nbsp; CommandBars.LoadDesignerBars App.Path &amp; "\filename.xcb"<br><br>That's all you have to do to load the command bar, there are a few morelines of code if you want to actually save the command bar if it wascustomized.&nbsp; After that you have to add code to theCommandBars_Execute and CommandBars_Update event procedures.&nbsp; Bothof the event procedures will contain a "Select Case" structure.&nbsp;Both of these event procedures will be passed a&nbsp;ICommandBarControl object called Control.&nbsp; You can get the ID ofthe control that was clicked from this object.&nbsp; So you use the"Select Case" structure to test "Control.Id" against all of the IDsthat were generated in the .bas module that was exported from thedesigner.&nbsp; Once you find the correct ID you can perform theappropriate action.&nbsp; The CommandBars_Execute event procedure isused when you need to perform a task like open a dialog or hide atoolbar.&nbsp; The CommandBars_Update event procedure is used forthings like placing the check mark next to the control name in the menuif it is visible.&nbsp; Or keeping a control diabled while a conditionexists, like keeping the paste buttin disabled if nothing is in theclipboard.&nbsp; The Update procedure is called automatically, wherethe Execute procedure is called when a control is clicked.&nbsp; <br><br>Well, I hope this helped you understand the Customizable sample.&nbsp; Let me know if you would like another example explained.<br>]]>
   </description>
   <pubDate>Sun, 15 Feb 2004 00:46:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=328&amp;PID=1026&amp;title=activex-version-tutorial#1026</guid>
  </item> 
  <item>
   <title><![CDATA[ActiveX Versi&#111;n Tutorial? : I posted this in the VB section...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=328&amp;PID=734&amp;title=activex-version-tutorial#734</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=294">MikeV</a><br /><strong>Subject:</strong> 328<br /><strong>Posted:</strong> 03 January 2004 at 3:54am<br /><br /><P>I posted this in the VB section but it doesn't look like it gets a lot of action so I thought I would try here too:</P><P>I just purshased the Command Bars activex control based upon the impressive sample projects.&nbsp; Assuming it would work much like any other activex control I didn't really scrutinize the implementation.&nbsp; Now that I have the product I find nothing that even remotely would serve as a brief "how-to" for implementation.&nbsp; Yes there are six sample projects only one with a "xcb" file included.&nbsp; One of the features I am most interested in is adding XP style tabs to my program, something demonstrated in the "MDI Sample" project, but there isn't a word on how to do in the source code.</P><P>I am very impressed by the look of the Command Bar control but I am about ready to write it off unless I can figure it out quickly.&nbsp; I've poked around and understand the "designer", but without any explanation of what is necessary to achieve a basic menu I find this software very frustrating.&nbsp; It seems to cater much more to the C++ crowd, which is great, but no help to me.</P><P>Can anybody offer a suggestion as to how to get up and running with the ActiveX version of Command Bar?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 03 Jan 2004 03:54:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=328&amp;PID=734&amp;title=activex-version-tutorial#734</guid>
  </item> 
 </channel>
</rss>