<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Toolbars and menu</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Toolbars and menu</description>
  <pubDate>Wed, 15 Apr 2026 15:29:23 -700</pubDate>
  <lastBuildDate>Wed, 02 Jan 2008 12:53:39 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=638</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Toolbars and menu : In CAB, global extensions to the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=638&amp;PID=2326#2326</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 02-Jan-2008 at 12:53pm<br /><br /><P>In CAB, global extensions to the UI are handled by registering UIExtensionSites with the workitem.&nbsp; I believe David Platt covers them in detail in his book.&nbsp; If you don't have it, you should get it.&nbsp; See my list of CAB resources in this thread:</P><DIV><a href="http://www.ideablade.com/forum/forum_posts.asp?TID=573" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=573</A></DIV><DIV>&nbsp;</DIV><DIV>In IdeaBlade.Cab, the shell layout views (defined in the Views\Layout folder of IdeaBlade.Cab.DotNet or IdeaBlade.Cab.DevEx in the CabanaLib solution) register the main menu bar using the constant UIExtensionSiteNames.MainMenu.&nbsp;&nbsp; In the DevEx version, this is a "Bar" that can hold both menu items and widgets of various types.&nbsp; In the DotNet version, it is a MenuBar.</DIV><DIV>&nbsp;</DIV><DIV>For an example of extending the main menu, see the "Extend Menu" region of the SplashModuleController in the Cabana solution.&nbsp; The code is commented out, but it shows the basic principles.</DIV><DIV>&nbsp;</DIV><DIV>Neither shell layout version registers a separate tool bar as an extension site.&nbsp; To do this, you'd need to make a copy of the appropriate ShellLayoutView in your Foundation module, change the namespace and add a tool bar and the code to register it (UIExtensionSiteNames already contains the constant "MainToolBar").&nbsp; You'd then need to register YOUR shell layout view in place of the standard ShellLayoutView.&nbsp; Do this in the ViewFactoryService (in your Foundation module) with something like:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#008000 size=2>// Register application-specific views here ...</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// RegisterViewType&lt;Views.MyViewType&gt;(ViewNames.MyView);</P></FONT><FONT size=2><P>UnregisterViewType(</FONT><FONT color=#008080 size=2>ViewNames</FONT><FONT size=2>.ShellLayout);</P><P>RegisterViewType&lt;MyShellLayoutView&gt;(</FONT><FONT color=#008080 size=2>ViewNames</FONT><FONT size=2>.ShellLayout);</P></FONT></DIV><DIV>UIExtensionSites work, but we feel they are one of the weaker areas of CAB and we have not incorporated many examples into Cabana.</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps a bit.</DIV><DIV>&nbsp;</DIV><DIV>Bill Jensen</DIV><DIV>IdeaBlade</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 02 Jan 2008 12:53:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=638&amp;PID=2326#2326</guid>
  </item> 
  <item>
   <title>Toolbars and menu : How do I change the items in the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=638&amp;PID=2316#2316</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 638<br /><strong>Posted:</strong> 29-Dec-2007 at 12:20pm<br /><br /><P>How do I change the items in the Main Menu?&nbsp; How do I add a toolbar to the are under the menu?</P><DIV></DIV>]]>
   </description>
   <pubDate>Sat, 29 Dec 2007 12:20:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=638&amp;PID=2316#2316</guid>
  </item> 
 </channel>
</rss>