<?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 : &#070;orms attached to commandbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : &#070;orms attached to commandbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 22:01:26 +0000</pubDate>
  <lastBuildDate>Mon, 27 Mar 2006 17:18:07 +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=237</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[&#070;orms attached to commandbar : i had 9.6 version and it has that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=11771&amp;title=forms-attached-to-commandbar#11771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1873">serkan</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 27 March 2006 at 5:18pm<br /><br /><P>i had 9.6 version and it has that bug.. v9.81 is working good.. now i downloaded 9.81 </P><P>but now i have another problem.. i attached some forms (form2)&nbsp;to commandbar on form1, the form2 opened by the commandbar works good. </P><P>there are commandbars also on the form2 ..but when i click on an item on the&nbsp;commandbar on the form2, the form2&nbsp; is closing automatically.. how can i stop closing? also i have a form3 opened by form2's commandbar, and happens on it also.. </P><P>this happens also when a msgbox opened by form2.. </P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 27 Mar 2006 17:18:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=11771&amp;title=forms-attached-to-commandbar#11771</guid>
  </item> 
  <item>
   <title><![CDATA[&#070;orms attached to commandbar : hi i also have a problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=11682&amp;title=forms-attached-to-commandbar#11682</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1873">serkan</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 23 March 2006 at 6:00pm<br /><br /><P>hi i also have a problem with the xtpControlCustom </P><P>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)</P><P>&nbsp;&nbsp;&nbsp; If (CommandBar.Title = "Form") Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim ControlForm As CommandBarControlCustom<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar.Controls.DeleteAll<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ControlForm = CommandBar.Controls.Add(xtpControlCustom, 0, "Form")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlForm.Handle = pboxForm.hWnd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub<BR></P><P>pboxForm has checkbox, textbox, button</P><P>all controls works but textbox not.. </P><P>i can click it but i cant write any text in it..? </P><P>checkbox and button works fine.. but keybord is locked on textbox controls..</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 23 Mar 2006 18:00:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=11682&amp;title=forms-attached-to-commandbar#11682</guid>
  </item> 
  <item>
   <title><![CDATA[&#070;orms attached to commandbar :    You can control the size...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=1166&amp;title=forms-attached-to-commandbar#1166</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 26 February 2004 at 2:52pm<br /><br /><p>You can control the size of Text1.&nbsp; Assuming you have a textbox control on your form called Text1.<br></p><p>&nbsp;&nbsp;&nbsp; Text1.Width = 2000<br>&nbsp;&nbsp;&nbsp; Dim ToolBar As CommandBar&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp; Set ToolBar = CommandBars.Add("Standard", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; With ToolBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim&nbsp;customControl As CommandBarControlCustom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set customControl= .Add(xtpControlCustom, 999, "Test")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; customControl.Handle = Text1.hWnd<br>&nbsp;&nbsp;&nbsp;&nbsp; End with<br></p><p>You can just use the CommandBarEdit control to do the same thing,when using this control you can change the width at any time, not sureabout the text box.&nbsp; <br></p><p>About your other question, you would have to edit the sizeof the form before the form is attached just like setting theText1.Width before the Custom control is attached. <br></p><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Thu, 26 Feb 2004 14:52:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=1166&amp;title=forms-attached-to-commandbar#1166</guid>
  </item> 
  <item>
   <title><![CDATA[&#070;orms attached to commandbar : Hi, this is cool, but it seems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=1165&amp;title=forms-attached-to-commandbar#1165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=384">gordongong</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 26 February 2004 at 2:12pm<br /><br /><P>Hi,</P><P>this is cool, but it seems to me there is no way to control the size of "text1" within "customControl", correct? </P><P>well i am trying to use a xtpControlCustom control(attached to CommandBarPopup)&nbsp;to popup a form, and the only problem is i can't control the size of the form, is this true or am i doing something wrong?</P><P>&nbsp;</P><P>thanks in advance!</P>]]>
   </description>
   <pubDate>Thu, 26 Feb 2004 14:12:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=1165&amp;title=forms-attached-to-commandbar#1165</guid>
  </item> 
  <item>
   <title><![CDATA[&#070;orms attached to commandbar : Peterhan, It appears that 8.6...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=614&amp;title=forms-attached-to-commandbar#614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 04 December 2003 at 10:28pm<br /><br /><P>Peterhan,</P><P>It appears that 8.6 includes support for this.</P><P>Try something like this. Add a textbox named 'text1' to your form:</P><P>&nbsp;&nbsp;&nbsp; Dim ToolBar As CommandBar&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; Set ToolBar = CommandBars.Add("Standard", xtpBarTop)<BR>&nbsp;&nbsp;&nbsp; With ToolBar.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim&nbsp;customControl As CommandBarControlCustom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set customControl= .Add(xtpControlCustom, 999, "Test")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; customControl.Handle = Text1.hWnd</P><P>&nbsp;&nbsp;&nbsp;&nbsp; End with</P><P>If you want to capture the click event, you'll have to add that manually. CommandBars_Execute won't catch the click of a custom control. You could obviously just use the click event of the textbox, or if you want to keep things clean, handling everything in the same place, try:</P><P>Private Sub Text1_Click()<BR>&nbsp; Dim CommandBarControl As ICommandBarControl<BR>&nbsp; Set CommandBarControl = CommandBars.FindControl(, 999)<BR>&nbsp; Call CommandBars_Execute(CommandBarControl)<BR>End Sub</P><P>and then code like you normaly would:</P><P>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.Id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 999: MsgBox "Test"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_HELP_ABOUT:&nbsp;&nbsp;&nbsp;&nbsp; MsgBox "Version " &amp; App.Major ........</P><P>Good luck!</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 04 Dec 2003 22:28:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=614&amp;title=forms-attached-to-commandbar#614</guid>
  </item> 
  <item>
   <title><![CDATA[&#070;orms attached to commandbar : peterhan, I&amp;#039;m not sure but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=563&amp;title=forms-attached-to-commandbar#563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 13 November 2003 at 9:38pm<br /><br /><P>peterhan, I'm not sure but I think you can only add these types of controls if you have the MFC version, not ActiveX. Take a look at <A href="http://www.codejock.com/products/compare/" target="_blank">http://www.codejock.com/products/compare/</A></P><P>Good luck!</P>]]>
   </description>
   <pubDate>Thu, 13 Nov 2003 21:38:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=563&amp;title=forms-attached-to-commandbar#563</guid>
  </item> 
  <item>
   <title><![CDATA[&#070;orms attached to commandbar : How can i attach a form to a command...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=543&amp;title=forms-attached-to-commandbar#543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=240">peterhan</a><br /><strong>Subject:</strong> 237<br /><strong>Posted:</strong> 13 November 2003 at 8:56am<br /><br />How can i attach a form to a command bar.like the slider for example you have in commoncontrols.exe.or attach comboc with listviews and images. <img border="0" src="http://forum.codejock.com/smileys/smiley5.gif" border="0">  <img border="0" src="http://forum.codejock.com/smileys/smiley5.gif" border="0">  <img border="0" src="http://forum.codejock.com/smileys/smiley5.gif" border="0">  <img border="0" src="http://forum.codejock.com/smileys/smiley5.gif" border="0"> ]]>
   </description>
   <pubDate>Thu, 13 Nov 2003 08:56:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=237&amp;PID=543&amp;title=forms-attached-to-commandbar#543</guid>
  </item> 
 </channel>
</rss>