<?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 : Remove Toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Remove Toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Jul 2026 22:23:56 +0000</pubDate>
  <lastBuildDate>Fri, 14 Jul 2006 09:59:26 +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=4594</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[Remove Toolbar : Can I insert a toolbar in a form...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4594&amp;PID=14164&amp;title=remove-toolbar#14164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1984">Manuel</a><br /><strong>Subject:</strong> 4594<br /><strong>Posted:</strong> 14 July 2006 at 9:59am<br /><br />Can I insert a toolbar in a form unless create a menu?<br>In this moment i'm not able to do this!!<br>This is my code in vb<br>Thanks<br><br><img src="file:///C:/DOCUME%7E1/mmaffeis/IMPOST%7E1/Temp/moz-screenshot.jpg" alt="" border="0"><img src="file:///C:/DOCUME%7E1/mmaffeis/IMPOST%7E1/Temp/moz-screenshot-1.jpg" alt="" border="0"><img src="file:///C:/DOCUME%7E1/mmaffeis/IMPOST%7E1/Temp/moz-screenshot-2.jpg" alt="" border="0"><br>'****************CODE***********************'<br>Private Sub AddToolbar()<br><br>&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl<br>&nbsp;&nbsp;&nbsp; Dim ControlFile As CommandBarPopup, ControlEdit As CommandBarPopup, ControlView As CommandBarPopup<br>&nbsp;&nbsp;&nbsp; Dim ControlSelect As CommandBarPopup, ControlInsert As CommandBarPopup, ControlFormat As CommandBarPopup, ControlHelp As CommandBarPopup<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set ControlFile = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&amp;File", -1, False)<br>&nbsp;&nbsp;&nbsp; With ControlFile.CommandBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 1, "&amp;New"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 2, "&amp;Open"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, 3, "&amp;Close")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 54, "&amp;Save", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, 6, "Print Set&amp;up...")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 7, "Print Pre&amp;view"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 8, "&amp;Print"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, 9, "&amp;Exit", -1, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Dim ToolBar As CommandBar<br>&nbsp;&nbsp;&nbsp; Set ToolBar = CommandBars.Add("Standard", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; With ToolBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlSplitButtonPopup, ID_FILE_NEW_ARCHIVE, "&amp;New"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_OPEN_ARCHIVE, "&amp;Open"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_FAVORITES, "Favorites"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ACTIONS_ADD, "Add"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ACTIONS_EXTRACT, "Extract"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ACTIONS_VIEW, "View"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ACTIONS_CHECKOUT, "Checkout"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_WIZARD, "Wizard"<br>&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowTextBelowIcons = True<br><br>&nbsp;&nbsp;&nbsp; 'Change Icon Size<br>&nbsp;&nbsp;&nbsp; ToolBar.SetIconSize 42, 35<br><br>&nbsp;&nbsp;&nbsp; 'Disable MenuBar Docking<br>&nbsp;&nbsp;&nbsp; CommandBars.ActiveMenuBar.EnableDocking xtpFlagStretched<br>&nbsp;&nbsp;&nbsp; 'Disable ToolBar Docking<br>&nbsp;&nbsp;&nbsp; ToolBar.EnableDocking xtpFlagHideWrap<br><br>&nbsp;&nbsp;&nbsp; Dim Items()<br>&nbsp;&nbsp;&nbsp; Items = Array(ID_FILE_NEW_ARCHIVE, ID_FILE_OPEN_ARCHIVE, ID_FILE_FAVORITES, ID_ACTIONS_ADD, ID_ACTIONS_EXTRACT, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_ACTIONS_VIEW, ID_ACTIONS_CHECKOUT, ID_FILE_WIZARD)<br><br>&nbsp;&nbsp;&nbsp; If (ImageManager.IsAlphaIconsSupported) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImageManager.Icons.LoadBitmap "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX 2006\samples\CommandBars\VB\StaticBars\Icons\alphaclr.bmp", Items, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImageManager.Icons.LoadBitmap "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX 2006\samples\CommandBars\VB\StaticBars\Icons\alphaclrsm.bmp", Items, xtpImageNormal<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImageManager.Icons.LoadBitmap "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX 2006\samples\CommandBars\VB\StaticBars\Icons\highclr.bmp", Items, xtpImageNormal<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImageManager.Icons.LoadBitmap "C:\Programmi\Codejock Software\ActiveX\Xtreme SuitePro ActiveX 2006\samples\CommandBars\VB\StaticBars\Icons\highclrsm.bmp", Items, xtpImageNormal<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; CommandBars.Icons = ImageManager.Icons<br><br>&nbsp;&nbsp;&nbsp; CommandBars.Options.UseDisabledIcons = True<br>&nbsp;&nbsp;&nbsp; CommandBars.Options.ShowExpandButtonAlways = True<br><br><br>&nbsp;&nbsp;&nbsp; 'ommandBars.KeyBindings.Add FCONTROL, Asc("N"), ID_FILE_NEW_ARCHIVE<br>&nbsp;&nbsp;&nbsp; 'CommandBars.KeyBindings.Add FCONTROL, Asc("O"), ID_FILE_OPEN_ARCHIVE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>End Sub<br>]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 09:59:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4594&amp;PID=14164&amp;title=remove-toolbar#14164</guid>
  </item> 
 </channel>
</rss>