<?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 : Attach custom &#102;orm to  toolbar butt&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Attach custom &#102;orm to  toolbar butt&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:30:04 +0000</pubDate>
  <lastBuildDate>Mon, 04 Jul 2005 03:11:44 +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=2470</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[Attach custom &#102;orm to  toolbar butt&#111;n : Hi, Sorry, there weresome vacations...  Try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7442&amp;title=attach-custom-form-to-toolbar-button#7442</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2470<br /><strong>Posted:</strong> 04 July 2005 at 3:11am<br /><br /><P>Hi, Sorry, there were&nbsp;some vacations...</P><P>&nbsp;</P><P>Try this trick:</P><P>1. Add member&nbsp;of frmTableBox </P><P>Public ControlForm As CommandBarControlCustom</P><P>2. Save it in CommandBars_InitCommandsPopup</P><P>...</P><P>ControlForm.Handle = formTableBox.hWnd<BR>Set formTableBox.ControlForm = ControlForm</P><P>&nbsp;</P><P>3.</P><P>Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)</P><P>&nbsp;&nbsp;&nbsp; Picture1.Width = Picture1.Width + 60<BR>&nbsp;&nbsp;&nbsp; Picture1.Height = Picture1.Height + 60<BR>&nbsp;&nbsp;&nbsp; Me.Width = Me.Width + 60<BR>&nbsp;&nbsp;&nbsp; Me.Height = Me.Height + 60<BR>&nbsp;&nbsp; </P><P>&nbsp;&nbsp;&nbsp; ControlForm.Handle = Me.hWnd<BR>&nbsp;&nbsp;&nbsp; Set TempControl = ControlForm.Parent.Controls.Add(xtpControlButton, 1, "")<BR>&nbsp;&nbsp;&nbsp; TempControl.Delete<BR>End Sub</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 04 Jul 2005 03:11:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7442&amp;title=attach-custom-form-to-toolbar-button#7442</guid>
  </item> 
  <item>
   <title><![CDATA[Attach custom &#102;orm to  toolbar butt&#111;n : Joke Support, Why you are not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7373&amp;title=attach-custom-form-to-toolbar-button#7373</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1282">daliaessam</a><br /><strong>Subject:</strong> 2470<br /><strong>Posted:</strong> 29 June 2005 at 5:30pm<br /><br /><P>Joke Support,</P><P>Why you are not answering this email and the ticked I sent.</P>]]>
   </description>
   <pubDate>Wed, 29 Jun 2005 17:30:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7373&amp;title=attach-custom-form-to-toolbar-button#7373</guid>
  </item> 
  <item>
   <title><![CDATA[Attach custom &#102;orm to  toolbar butt&#111;n : Here is what I tried based on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7346&amp;title=attach-custom-form-to-toolbar-button#7346</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1282">daliaessam</a><br /><strong>Subject:</strong> 2470<br /><strong>Posted:</strong> 29 June 2005 at 7:50am<br /><br /><P>Here is what I tried based on your sample:</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim ControlTableBox As CommandBarPopup<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ControlTableBox = .Add(xtpControlButtonPopup, ID_Table_InsertTable, "Insert Table")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlTableBox.CommandBar.SetPopupToolBar True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlTableBox.CommandBar.Title = "InsertTable"<BR></P><P>Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)</P><P>&nbsp;&nbsp;&nbsp; Dim formTableBox As New frmTableBox<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If (CommandBar.Title = "InsertTable") 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, "InsertTable")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlForm.Handle = formTableBox.hwnd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; formTableBox.BackColor = CommandBars.GetSpecialColor(XPCOLOR_MENUBAR_FACE)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; End If</P><P>End Sub<BR></P><P>and frmTableBox is a form with a picture box Picture1:</P><P>Option Explicit</P><P>Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)</P><P>&nbsp;&nbsp;&nbsp; Me.Width = Me.Width + 60<BR>&nbsp;&nbsp;&nbsp; Picture1.Width = Picture1.Width + 60<BR>&nbsp;&nbsp;&nbsp; Picture1.Height = Picture1.Height + 60</P><P>End Sub</P><P>The popup control seems to set its width, height from the form before display, now the question is, how do I change the control with, height to fit the form after I resize it.</P><P>Is there a .Width and .height to resize the opened popup or what Iam doing wrong.</P><P><BR>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by daliaessam</span>]]>
   </description>
   <pubDate>Wed, 29 Jun 2005 07:50:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7346&amp;title=attach-custom-form-to-toolbar-button#7346</guid>
  </item> 
  <item>
   <title><![CDATA[Attach custom &#102;orm to  toolbar butt&#111;n : Hello, I just purchased the ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7320&amp;title=attach-custom-form-to-toolbar-button#7320</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1282">daliaessam</a><br /><strong>Subject:</strong> 2470<br /><strong>Posted:</strong> 28 June 2005 at 3:14pm<br /><br /><P><IMG src="uploads/daliaessam/2005-06-29_093742_FPTable.jpg" border="0">Hello,</P><P>I just purchased the ActiveX suite and I am happy realy with everything except for the docs. </P><P>I need to attach a form to a toolbar button and be able to resize it after the form is displayed, What I am trying to do is exactly as the Insert Table button on MS Frontpage do, that's when I click on the inert table button, it displays the form and if the user drags the mouse I can resize it.</P><P>This is an MDI project, I see in some sample you did something with a picture box.</P><P>Please drive me.</P><P>Thanks everyone</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by daliaessam</span>]]>
   </description>
   <pubDate>Tue, 28 Jun 2005 15:14:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2470&amp;PID=7320&amp;title=attach-custom-form-to-toolbar-button#7320</guid>
  </item> 
 </channel>
</rss>