<?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 : CommandBars hides OpenEdge menubar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBars hides OpenEdge menubar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 06:43:12 +0000</pubDate>
  <lastBuildDate>Tue, 21 Dec 2010 09:41:37 +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=17566</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[CommandBars hides OpenEdge menubar : Codejock Menu Bar will replace...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61937&amp;title=commandbars-hides-openedge-menubar#61937</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 21 December 2010 at 9:41am<br /><br />Codejock Menu Bar will replace standard menu bar - same as in VB.&nbsp; DeleteAll will remove the Codejock MenuBar so you can see your own OpenEdge menu.&nbsp; CommandBars.ActiveMenuBar.Visible = False will not work because when you call it your menubar has already been removed.&nbsp; So you need to first DeleteAll and only after call AttachTOWindow.&nbsp; I noticed you call DeleteAll After AttachTOWindow, we never tried OpenEdge so can't be sure how it works, but we recommend it is called before AttachTOWindow.]]>
   </description>
   <pubDate>Tue, 21 Dec 2010 09:41:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61937&amp;title=commandbars-hides-openedge-menubar#61937</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : Hi,  You could submit post i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61586&amp;title=commandbars-hides-openedge-menubar#61586</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 29 November 2010 at 3:57am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You could submit post in&nbsp;<a href="https://forum.codejock.com/forum_topics.asp?FID=158&amp;title=articles-and-tutorials" target="_blank">https://forum.codejock.com/forum_topics.asp?FID=158&amp;title=articles-and-tutorials</A>&nbsp;Maybe you will find other helpfull solutions (or your fellow OpenEdge users) which will be helpfull without having to worry like you already did <img src="https://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 29 Nov 2010 03:57:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61586&amp;title=commandbars-hides-openedge-menubar#61586</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : Believe me or not, Aaron, the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61581&amp;title=commandbars-hides-openedge-menubar#61581</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6176">oli.dune</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 29 November 2010 at 3:22am<br /><br />Believe me or not, Aaron, the solution is as simple as a call to the DeleteAll() method, just after the :AttachToWindow().<br><br>I've seen that the :ActiveMenuBar wasn't null, and after several (unsuccessful) attempts to re-assign it to the OpenEdge window's one, I've tried the DeleteAll() eraser...<br><br>Hope this might help our fellows<br><br>Once again, thank you.<br><br>]]>
   </description>
   <pubDate>Mon, 29 Nov 2010 03:22:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61581&amp;title=commandbars-hides-openedge-menubar#61581</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : Hi,  Ok, I understand what you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61569&amp;title=commandbars-hides-openedge-menubar#61569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 26 November 2010 at 12:32pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Ok, I understand what you mean. My best guess is that CJ Commandbars "tries" to include the Main menu but it fails somewhere... Look in the update event and add code so you can see if the commandbar items are&nbsp;created. </DIV><DIV>&nbsp;</DIV><DIV>Note:</DIV><DIV>With <strong>VB,</strong> when dropping a CommandBar control on a form and a skin is applied, the main menu just looks like a "real" menu created with commandbars. The standard VB menu&nbsp;has been "integrated" and I'm able to use the Execute&nbsp;/ Update event just as with ordinary created commandbar items (just mainitems aren't skinned)</DIV><DIV>&nbsp;</DIV><DIV>Too bad, the member who had same problem, didn't respond anymore&nbsp;otherwise you would know&nbsp;what to do. Try to get in touch with the member (personal message or maybe email)</DIV><DIV>&nbsp;</DIV><DIV>btw did you try with CommandBarsFrame? Some people use this to get it working within Access database... Never had to use it so I don't know if it works...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;<DIV>Good luck <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 26 Nov 2010 12:32:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61569&amp;title=commandbars-hides-openedge-menubar#61569</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : Thanks for your answer Aaron.In...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61566&amp;title=commandbars-hides-openedge-menubar#61566</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6176">oli.dune</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 26 November 2010 at 9:10am<br /><br />Thanks for your answer Aaron.<br><br>In fact, the goal of all this is to make windows' control buttons (min/max/close) available when a skin is currently selected.<br>I've simply read and applied the suggestion described in this post: <a href="http://forum.codejock.com/forum_posts.asp?TID=15393&amp;title=openedge-minimize-restore-close-butt&#111;ns-disabled" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=15393&amp;title=openedge-minimize-restore-close-buttons-disabled</a><br><br>So to answer your question: No, I do not use the CommandBars control to set up a nice menu/toolbar. I just want to keep using those we have yet defined (in OpenEdge).<br><br>If I invoke the AttachToWin() method, and reference the window, its menu-bar disappear.<br>If I invoke the method on something else (frame, or whatever) or if I simply do not invoke the method, then the min/max/close control buttons remain disabled.<br><br>]]>
   </description>
   <pubDate>Fri, 26 Nov 2010 09:10:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61566&amp;title=commandbars-hides-openedge-menubar#61566</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : Hi,  Since your &amp;#034;fellow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61565&amp;title=commandbars-hides-openedge-menubar#61565</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 26 November 2010 at 6:46am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Since your "fellow OpenEdge users" don't want to help, I will give it a try....</DIV><DIV>&nbsp;</DIV><DIV>First of all I would like to know what you want. You mentioned, you want&nbsp;to "attach" a commandbars control to another "window"</DIV><DIV>&nbsp;</DIV><DIV>The commandbars control is a Toolbar or what?</DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#0000ff>YES</FONT></strong>: The AttachToWindow method (with VB) works OK. If you&nbsp;use this method, you are able to "move" a toolbar to another "window" but it will be docked at position you defined (see bold part below)</DIV><DIV>&nbsp;</DIV><DIV>With Me.CommandBars<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AttachToWindow picBoxReport.hwnd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With .Add("Tools", <strong>xtpBarRight</strong>)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....</DIV><DIV>End With</DIV><DIV>&nbsp;</DIV><DIV>So this toolbar will be docked at right side of the picturebox <U>BUT</U> if you have some resizing function that will resize control in&nbsp;same picturebox as you attached the toolbar to, the toolbar won't be visible (it will stay behind the control you resized) In this case we need to resize the control inside picturebox a bit and normally you could do this by using ResizeClient event:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_ResizeClient(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndReportControl.Move Left, Top, Right - Left, Bottom - Top <FONT color=#006600>'This is a ReportControl that resides in another picturebox as the commandbars control (toolbar)<BR></FONT>End Sub</DIV><DIV>&nbsp;</DIV><DIV>With above code I was able to show the toolbar as should.&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000><strong>NO</strong></FONT>:</DIV><DIV>Define Commandbar control</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps a bit, if not just reply again and I will see what I can do <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 26 Nov 2010 06:46:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61565&amp;title=commandbars-hides-openedge-menubar#61565</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : I&amp;#039;ve submitted an issue to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61564&amp;title=commandbars-hides-openedge-menubar#61564</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6176">oli.dune</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 26 November 2010 at 4:44am<br /><br />I've submitted an issue to the CJ Support Team (#:25683) on Monday, but I didn't receive anything else than a receipt so far.<br>OK, the support period of our license is over, but I would have expected some feedback regarding something that looks like <strike>a bug</strike> an "undocumented feature" <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" /><br><br>Please, Oleg? Aaron?<br>]]>
   </description>
   <pubDate>Fri, 26 Nov 2010 04:44:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61564&amp;title=commandbars-hides-openedge-menubar#61564</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : I&amp;#039;ve surrounded the CommandBars:AttachToWindow()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61445&amp;title=commandbars-hides-openedge-menubar#61445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6176">oli.dune</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 18 November 2010 at 9:57am<br /><br />I've surrounded the CommandBars:AttachToWindow() function with the Windows API functions GetMenu() and SetMenu():<br><br>&nbsp; DEF VAR i_WinHWND AS INT&nbsp; NO-UNDO.<br>&nbsp; DEF VAR i_MenuHWND AS INT&nbsp; NO-UNDO.<br>&nbsp; DEF VAR i AS INT NO-UNDO.<br><br>&nbsp; RUN GetParent( {&amp;WINDOW-NAME}:HWND, OUTPUT i_WinHWND ).<br><br>&nbsp; RUN GetMenu( INPUT i_WinHWND, OUTPUT i_MenuHWND ).<br>&nbsp; /* Here, we have a valid menu handle in i_MenuHWND */<br><br>&nbsp; chCtrl_SkinCommandBars:CommandBars:AttachToWindow( i_WinHWND ).<br><br>&nbsp; RUN GetMenu( INPUT i_WinHWND, OUTPUT i ).<br>&nbsp; /* Here, it seems there's no menu assigned to the window anymore (i = 0) */<br><br>&nbsp; RUN SetMenu( INPUT i_WinHWND, INPUT i_MenuHWND, OUTPUT i ).<br>&nbsp; /* i &gt; 0 (it seems that the function succeeded) */<br><br>&nbsp; RUN GetMenu( INPUT i_WinHWND, OUTPUT i ).<br>&nbsp; /* Helas, it seems the menu were not assigned to the window (i = 0) */<br>&nbsp; <br><br>So, can anyone from CJ tell me if the AttachToWindow() method is altering the Window definition to disallow menubar? <br><br>Thx<br>]]>
   </description>
   <pubDate>Thu, 18 Nov 2010 09:57:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61445&amp;title=commandbars-hides-openedge-menubar#61445</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars hides OpenEdge menubar : Hi there,Consider an OpenEdge...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61410&amp;title=commandbars-hides-openedge-menubar#61410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6176">oli.dune</a><br /><strong>Subject:</strong> 17566<br /><strong>Posted:</strong> 16 November 2010 at 11:01am<br /><br />Hi there,<br><br>Consider an OpenEdge window with a menubar.<br>If I add a CommandBars control, and perform the AttachToWindow() method, the OpenEdge window's menubar disappears (although its handle is still valid and shortcuts are still available).<br><br>DEF VAR i_WinHWND AS INT NO-UNDO.<br>RUN GetParent( {&amp;WINDOW-NAME}:HWND, OUTPUT i_WinHWND ).<br>chCtrlFrame:CommandBars:AttachToWindow( i_WinHWND ).<br><br>Any help would be highly appreciated.<br>Thanks in advance<br>]]>
   </description>
   <pubDate>Tue, 16 Nov 2010 11:01:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17566&amp;PID=61410&amp;title=commandbars-hides-openedge-menubar#61410</guid>
  </item> 
 </channel>
</rss>