<?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 : Drag/Drop from ribbon bar button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : ActiveX COM : Drag/Drop from ribbon bar button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 23:01:52 +0000</pubDate>
  <lastBuildDate>Fri, 21 May 2010 11:18: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=16695</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[Drag/Drop from ribbon bar button : I can&amp;#039;t help here. I had...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58625&amp;title=drag-drop-from-ribbon-bar-button#58625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 21 May 2010 at 11:18am<br /><br />I can't help here. I had a similar problem that I coudn't solve, but I found a few answers from google regarding OLEDragDrop vs DragDrop at the time.<br />Anyway, support for both DragDrop and OLEDragDrop from CJ controls would save us, poor users, a lot of time and troubles  <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" align="middle"> ]]>
   </description>
   <pubDate>Fri, 21 May 2010 11:18:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58625&amp;title=drag-drop-from-ribbon-bar-button#58625</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : More info, still need second opinons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58613&amp;title=drag-drop-from-ribbon-bar-button#58613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 20 May 2010 at 3:48pm<br /><br />More info, still need second opinons for possible solutions.<DIV>&nbsp;</DIV><DIV>Seems like CommandBars support OLEDragDrop but not DragDrop. The target control (AddFlow) supports DragDrop but not OLEDragDrop. </DIV><DIV>&nbsp;</DIV><DIV>Sigh.</DIV><DIV>&nbsp;</DIV><DIV>I'm still verifying all this but this could be a killer for me. I need to be able to tell the target control which button was dragged over the canvas.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for any help/suggestions.</DIV><DIV>&nbsp;</DIV><DIV>Gary</DIV>]]>
   </description>
   <pubDate>Thu, 20 May 2010 15:48:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58613&amp;title=drag-drop-from-ribbon-bar-button#58613</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : OK, My bad on part of this.  If...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58612&amp;title=drag-drop-from-ribbon-bar-button#58612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 20 May 2010 at 3:02pm<br /><br />OK, My bad on part of this. <DIV>If I set 'OLEDropMode' to Manual on the TreeView and the ReportControl, then I get the OLEDragOver event from dragging the CJ button in a gallery.</DIV><DIV>&nbsp;</DIV><DIV>So it's looking like my graphing control (AddFlow) in a separate form&nbsp;is the problem. A treeview and a reportcontrol in panes on the same form as the commandbar/ribbonbar seems to respond to drag events.</DIV><DIV>&nbsp;</DIV><DIV>The graph control is on a form. The handle to that form is loaded to a pane in the AttachPane() event. </DIV><DIV>&nbsp;</DIV><DIV>So now I'm wondering if the problem is that drag/drop does not get processed on the graph form because it does not or can not recieve events from another form??</DIV><DIV>&nbsp;</DIV><DIV>Sigh.</DIV><DIV>&nbsp;</DIV><DIV>Any thought?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 20 May 2010 15:02:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58612&amp;title=drag-drop-from-ribbon-bar-button#58612</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : Carlos/Oleg,  I could use some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58610&amp;title=drag-drop-from-ribbon-bar-button#58610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 20 May 2010 at 12:40pm<br /><br />Carlos/Oleg,<DIV>&nbsp;</DIV><DIV>I could use some code, even fake code, to implement dragging of a button in a gallery on a ribbon bar to a target control that accepts dragdrop. Whew!</DIV><DIV>&nbsp;</DIV><DIV>I've added catching&nbsp;XT_GN_STARTDRAG in cbMain.ControlNotify as Carlos suggested. In&nbsp;cbMain.ControlNotify() is see XT_GN_STARTDRAG firing and make a call to 'cbMain.OLEDrag()'. </DIV><DIV>&nbsp;</DIV><DIV>In cbMain_OLEStartDrag() I do this :</DIV><DIV>&nbsp;&nbsp;&nbsp; Data.Clear<BR>&nbsp;&nbsp;&nbsp; Data.SetData "xxx", vbCFText<BR>&nbsp;&nbsp;&nbsp; AllowedEffects = vbDropEffectCopy</DIV><DIV>&nbsp;</DIV><DIV>I see the 'copy' effect now when I drag the button around. BUT I do not get a DragOver event or DragDrop event on my target. As I drag I see the 'copy' icon if I drag over a treeview but I do see the 'cannot drop' icon over my real target control. My real target control WILL accept drag/drop from vb buttons that are dragging.</DIV><DIV>&nbsp;</DIV><DIV>To be clear I'm dragging a button in a gallery in a group on a ribbon bar. The form that hosts the commandbar/ribbonbar has several other forms that share the client area. One form has a treeview. The other form has a graphing control (AddFlow). </DIV><DIV>&nbsp;</DIV><DIV>Though dragging over the treeview shows the drag 'copy' icon it doesnt get the dragdrop event if i release the mouse button even though I have DragMode = Automatic. Dragging over the graphing control gives me the 'cannot drop' icon even though the control has DragMode= Automatic.</DIV><DIV>&nbsp;</DIV><DIV>It seems that even though I get the dragging icon of the CJ button I do not get the dragover or dragdrop events in target controls.</DIV><DIV>&nbsp;</DIV><DIV>Any code/help would be appreciated!</DIV><DIV>&nbsp;</DIV><DIV>Gary<BR></DIV>]]>
   </description>
   <pubDate>Thu, 20 May 2010 12:40:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58610&amp;title=drag-drop-from-ribbon-bar-button#58610</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : I may want/have to add a commandbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58474&amp;title=drag-drop-from-ribbon-bar-button#58474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 12 May 2010 at 3:32pm<br /><br />I may want/have to add a commandbar that has buttons or labels on it that I can drag from as well. <DIV>&nbsp;</DIV><DIV>So I'm looking for a CJ commandbar or ribbonbar taht I can put icons/buttons on (20 or so) and the User can drag one down onto a graphing canvas object I have.</DIV><DIV>&nbsp;</DIV><DIV>I already use the ribbonbar with groups that have buttons so I'd like to drag from the buttons as I've said before.</DIV><DIV>&nbsp;</DIV><DIV>I'm not sure now I can even use a commandbar button to drag!!! Sheesh!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 12 May 2010 15:32:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58474&amp;title=drag-drop-from-ribbon-bar-button#58474</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : My experiment failed of course...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58469&amp;title=drag-drop-from-ribbon-bar-button#58469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 12 May 2010 at 12:32pm<br /><br />My experiment failed of course since&nbsp;cb.Execute is not entered&nbsp;until you have the MouseUp event which will not happen if you try to drag off the button. <DIV>&nbsp;</DIV><DIV>Sigh. This should not be hard.</DIV><DIV>&nbsp;</DIV><DIV>I'll look into the Gallery idea but I'm really disappointed that the buttons do not support simple drag/drop events or give me MouseMove to play with.</DIV><DIV>&nbsp;</DIV><DIV>Hopefully I'll hear from Oleg or someone at CJ soon about this.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again.</DIV>]]>
   </description>
   <pubDate>Wed, 12 May 2010 12:32:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58469&amp;title=drag-drop-from-ribbon-bar-button#58469</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : The GUI look is a litle different,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58445&amp;title=drag-drop-from-ribbon-bar-button#58445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 11 May 2010 at 6:16pm<br /><br />The GUI look is a litle different, but not that much. You still get hoover effects in the buttons.<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by garyhenson" alt="Originally posted by garyhenson" style="vertical-align: text-bottom;" /> <strong>garyhenson wrote:</strong><br /><br /><div>Do you have any base code to process the dragstart/dragdrop of the button?</td></tr></table> <br /><br />My programming language is very different from VB, but in my ControlNotify Event I have this:<br /><br />if Code == XTP_GN_STARTDRAG .and. Control:Id == ID_GALLERY_OBJECTS<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oDesignerMenu:OLEDrag()<br />endif<br /><br />Then you can process the behavior in OLEStartDrag event]]>
   </description>
   <pubDate>Tue, 11 May 2010 18:16:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58445&amp;title=drag-drop-from-ribbon-bar-button#58445</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : Hmm. I&amp;#039;ll see if I can do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58442&amp;title=drag-drop-from-ribbon-bar-button#58442</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 11 May 2010 at 5:41pm<br /><br />Hmm. I'll see if I can do that, but I'm not banking on it as it would radically change the GUI look and feel.<DIV>&nbsp;</DIV><DIV>Do you have any base code to process the dragstart/dragdrop of the button?</DIV><DIV>&nbsp;</DIV><DIV>I'm hoping I'll get a 'just do this, dummy' response from oleg.</DIV><DIV>&nbsp;</DIV><DIV>Right now I'm experimenting with checking for the control key or menu(alt) key to be down when the button is pressed (in the Execute event code ) to indicate that the User wants to drag drop not select. Seems kludy but may be ok for me.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your quick response, Carlos!</DIV>]]>
   </description>
   <pubDate>Tue, 11 May 2010 17:41:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58442&amp;title=drag-drop-from-ribbon-bar-button#58442</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : You can put your buttons in a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58440&amp;title=drag-drop-from-ribbon-bar-button#58440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3743">Carlos Rocha</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 11 May 2010 at 4:53pm<br /><br />You can put your buttons in a gallery and check for XTP_GN_STARTDRAG in ControlNotify event. This is how I do it, as I could't find another way.]]>
   </description>
   <pubDate>Tue, 11 May 2010 16:53:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58440&amp;title=drag-drop-from-ribbon-bar-button#58440</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop from ribbon bar button : That says it all. I need to drag/drop...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58436&amp;title=drag-drop-from-ribbon-bar-button#58436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4583">garyhenson</a><br /><strong>Subject:</strong> 16695<br /><strong>Posted:</strong> 11 May 2010 at 3:25pm<br /><br />That says it all. I need to drag/drop a button in a group on a ribbon bar to another control. In this case it's a third party graphing control. The part I need is how to start the drag process when User left clicks on a button in a ribbon bar and starts to drag.<DIV>&nbsp;</DIV><DIV>I see that ribbon bars have drag start and drag drop but I don't see a mouse down to start the process.</DIV><DIV>&nbsp;</DIV><DIV>Simple code example? (I didn't find one in my samples)</DIV><DIV>&nbsp;</DIV><DIV>Using ActiveX v13 in a VB6 app.</DIV><DIV>&nbsp;</DIV><DIV>As always thanks for the great support and help!</DIV><DIV>&nbsp;</DIV><DIV>Gary Henson</DIV>]]>
   </description>
   <pubDate>Tue, 11 May 2010 15:25:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16695&amp;PID=58436&amp;title=drag-drop-from-ribbon-bar-button#58436</guid>
  </item> 
 </channel>
</rss>