<?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 : Ribbon Control and Progress OpenEdge 10.1A</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbon Control and Progress OpenEdge 10.1A]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:07:09 +0000</pubDate>
  <lastBuildDate>Fri, 27 Feb 2009 12:06:22 +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=12708</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[Ribbon Control and Progress OpenEdge 10.1A : Hi Arie, thanks for your help. Do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45981&amp;title=ribbon-control-and-progress-openedge-10-1a#45981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4702">NormenT</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 27 February 2009 at 12:06pm<br /><br />Hi Arie,<DIV>thanks for your help.</DIV><DIV>Do you have a skype or messenger Account where i can contact you ? (i hope it is allowed to ask for)</DIV><DIV>I git some little very progress - specific Question maybe you can help ?</DIV><DIV>(Skype: Normen_T)</DIV><DIV>KdRgds and a nice Weekend</DIV><DIV>Normen</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 12:06:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45981&amp;title=ribbon-control-and-progress-openedge-10-1a#45981</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : I see the above code is not working...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45956&amp;title=ribbon-control-and-progress-openedge-10-1a#45956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4811">adwild2</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 27 February 2009 at 3:12am<br /><br /><DIV>I see the above code is not working with a statusbar. This is because progress tries to resize the progress window to the size of the windows window. You have to overrule this in the resize event of the commandbars.</DIV><DIV>&nbsp;</DIV><DIV>First an updated version of the code i wrote you first. This will correctly set the statusbar.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;</DIV><DIV>DEFINE VARIABLE&nbsp;&nbsp; chPane AS COM-HANDLE NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; ig_Tmp AS INTEGER&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; cg_Tmp AS CHARACTER&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; lg_Tmp AS LOGICAL&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; i_hWnd AS INTEGER&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; hFrame AS HANDLE&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.</DIV><P>ASSIGN hFrame = FRAME default-frame:HANDLE.<BR>CREATE CONTROL-FRAME ocx_Toolbar<BR>ASSIGN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FRAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = chocx_Toolbar:LoadControls(cg_Tmp,"ocx_CommandBars":U)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ch_TBar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = chocx_Toolbar:CommandBars.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>RUN GetParent( c-win:HWND, OUTPUT i_hWnd ). /* Get Windows-window */<BR>RUN SetWindowPos( c-win:HWND, 0, 0, 142, 0, 0, {&amp;SWP_NOSIZE} + {&amp;SWP_NOZORDER}, OUTPUT ig_Tmp).<BR>ch_TBar:AttachToWindow( i_hWnd ).</P><P>/* Create ribbonbar */<BR>ASSIGN RibbonBar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ch_TBar:AddRibbonBar("RibbonBar")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chpane&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = RibbonBar:AddSystemButton()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RibbonBar:ShowQuickAccess = FALSE.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>ch_TBar:LoadDesignerBars("test_form.xcb" ).</P><P><BR>/* Set statusbar */<BR>ASSIGN chStatusbar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ch_TBar:StatusBar<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chStatusbar:Visible&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chpane&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = chStatusBar:AddPane(1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chpane:TEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "Hello world":U.</P><P>chStatusbar:SetPaneStyle( 1, 134217728).&nbsp;&nbsp;&nbsp; /* Stretchable */<BR>chStatusbar:AddPane( 59137 ). /* CAPS */<BR>chStatusbar:AddPane( 59138 ). /* NUM&nbsp; */</P><P>/* Enable theme */<BR>RibbonBar:EnableFrameTheme().</P><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Now you have to add a procedure for the commanbars resize event:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;</DIV><DIV>PROCEDURE ocx_Toolbar.CommandBars.Resize :<BR>DEFINE VARIABLE&nbsp;&nbsp; i_Tmp AS INTEGER&nbsp;&nbsp;&nbsp; NO-UNDO.</DIV><DIV>/* </DIV><DIV>142 = height of ribbon</DIV><DIV>22&nbsp; = height of statusbar</DIV><DIV>*/</DIV><DIV>RUN SetWindowPos( c-win:HWND, 0, 0, 0, c-win:WIDTH-PIXELS, c-win:HEIGHT-PIXELS - 142 - 22, {&amp;SWP_NOMOVE} + {&amp;SWP_NOZORDER}, OUTPUT i_Tmp).</DIV><DIV>&nbsp;</DIV><DIV>END PROCEDURE.</DIV><DIV>&nbsp;</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Good luck.</DIV><DIV>Grtz Arie</DIV>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 03:12:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45956&amp;title=ribbon-control-and-progress-openedge-10-1a#45956</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : Hi, maybe i am to inexperienced....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45930&amp;title=ribbon-control-and-progress-openedge-10-1a#45930</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4702">NormenT</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 26 February 2009 at 10:28am<br /><br />Hi,<DIV>maybe i am to <SPAN>inexperienced. Everything works fine (loadDesignBars works fine ?!) but the Statusbar is not working.</SPAN></DIV><DIV><SPAN>Can you send me a example code for this ? (resize the window doesn't work)</SPAN></DIV><DIV><SPAN>KdRgds.</SPAN></DIV><DIV><SPAN>Normen</SPAN></DIV><DIV><SPAN></SPAN>&nbsp;</DIV><DIV><SPAN></SPAN>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 26 Feb 2009 10:28:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45930&amp;title=ribbon-control-and-progress-openedge-10-1a#45930</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : Changed your code a bit (the procedure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45909&amp;title=ribbon-control-and-progress-openedge-10-1a#45909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4811">adwild2</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 26 February 2009 at 4:31am<br /><br /><DIV>Changed your code a bit (the procedure "programminit"), and now it works for me. The ribbonbar is now created AFTER it is attached to the window. I disabled the xcb file from the commandbars designer because for some reason it removes the minimize, maximize and close buttons on the ribbon. I you want to use a status bar you also should decrease the&nbsp;height of the progress window. In the code there is a comment which describes this. If this code doesn't work for you there is probably something wrong with your .wrx file.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>DEFINE VARIABLE&nbsp;&nbsp; chPane AS COM-HANDLE NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; ig_Tmp AS INTEGER&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; cg_Tmp AS CHARACTER&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; lg_Tmp AS LOGICAL&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; i_hWnd AS INTEGER&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>DEFINE VARIABLE&nbsp;&nbsp; hFrame AS HANDLE&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.</DIV><P>ASSIGN hFrame = FRAME default-frame:HANDLE.<BR>CREATE CONTROL-FRAME ocx_Toolbar<BR>ASSIGN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FRAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = hFrame<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ROW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1<BR>&nbsp;&nbsp;&nbs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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = chocx_Toolbar:CommandBars.</P><P>RUN GetParent( c-win:HWND, OUTPUT i_hWnd ). /* Get Windows-window */<BR>RUN SetWindowPos( c-win:HWND, 0, 0, 142, 0, 0, {&amp;SWP_NOSIZE} + {&amp;SWP_NOZORDER}, OUTPUT ig_Tmp).<BR>/*<BR>To make the statusbar visible you also have to resize the Progress window.<BR>Then you should remove {&amp;SWP_NOSIZE} and give a width and height in the <BR>5th and 6th argument of SetWindowPos.<BR>*/<BR>ch_TBar:AttachToWindow( i_hWnd ).</P><P>ASSIGN RibbonBar = ch_TBar:AddRibbonBar("RibbonBar")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chpane&nbsp;&nbsp;&nbsp; = RibbonBar:AddSystemButton().</P><P>/* ch_TBar:LoadDesignerBars("test_form.xcb" ). /* if enabled it removes the windows buttons (?) */ */<BR>ASSIGN RibbonBar:ShowQuickAccess = FALSE.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chStatusbar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ch_TBar:StatusBar.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chpane&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = chStatusBar:AddPane(0).</P><P>RibbonBar:EnableFrameTheme().</P><DIV></DIV></pre></td></tr></table> ]]>
   </description>
   <pubDate>Thu, 26 Feb 2009 04:31:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45909&amp;title=ribbon-control-and-progress-openedge-10-1a#45909</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : I have already tried to increase...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45904&amp;title=ribbon-control-and-progress-openedge-10-1a#45904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4702">NormenT</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 26 February 2009 at 4:04am<br /><br /><P>I have already tried to increase the size of the form, but it has no result.</P><DIV>(i added a screen, where you can see the results)</DIV><DIV><img src="https://forum.codejock.com/uploads/20090226_040320_screenshot.jpg" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 26 Feb 2009 04:04:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45904&amp;title=ribbon-control-and-progress-openedge-10-1a#45904</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : Hi, Try to increase size of form....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45900&amp;title=ribbon-control-and-progress-openedge-10-1a#45900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 26 February 2009 at 3:56am<br /><br />Hi,<DIV>Try to increase size of form.</DIV>]]>
   </description>
   <pubDate>Thu, 26 Feb 2009 03:56:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45900&amp;title=ribbon-control-and-progress-openedge-10-1a#45900</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : Hi rdhaan, everything is fine...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45893&amp;title=ribbon-control-and-progress-openedge-10-1a#45893</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4702">NormenT</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 26 February 2009 at 3:06am<br /><br />Hi rdhaan,<DIV>everything is fine - but, the ribbon is not visible...<a href="https://forum.codejock.com/uploads/20090226_030353_sample.zip" target="_blank">uploads/20090226_030353_sample.zip</A></DIV><DIV>I attached a small sample - where you can see what i mean. (hope so)</DIV><DIV>The Main code is in the Proecedure programminit.</DIV><DIV>Or do you have a working small exaple ? (it should contain the LoadDesignerBars method)</DIV><DIV>&nbsp;</DIV><DIV>Regars</DIV><DIV>Normen</DIV>]]>
   </description>
   <pubDate>Thu, 26 Feb 2009 03:06:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45893&amp;title=ribbon-control-and-progress-openedge-10-1a#45893</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : Normen,   We use the CommandBars,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45860&amp;title=ribbon-control-and-progress-openedge-10-1a#45860</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4792">rdhaan</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 25 February 2009 at 9:14am<br /><br />Normen, <DIV>&nbsp;</DIV><DIV>We use the CommandBars, not the CommandBarsFrame.</DIV><DIV>With a CONTROL-FRAME of 1 by 1 pixels and then using the AttachToWindow function is docks to the Windows window.</DIV><DIV>This works for the RibbonBar and also the CommandBar used as a Toolbar (wit then lowering the Progress windows 26 pixels).</DIV><DIV>&nbsp;</DIV><DIV>Even when using the statusbar, is still works.</DIV><DIV>The only weird thing we had was that the Close and Maximize buttons didn't work with the SkinFrameWork</DIV><DIV>(before we docked the Toolbars to the 'Progress' window).</DIV><DIV>But after moving it to the Windows window the buttons work.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT size=1>&nbsp;&nbsp;&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bsp;&nbsp; IF cg_Tmp = ? THEN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETURN "ERROR":U.</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp; ASSIGN chocx_Toolbar = ocx_Toolbar:COM-HANDLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lg_Tmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = chocx_Toolbar:LoadControls(cg_Tmp,"ocx_CommandBars":U)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NO-ERROR.</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp; ASSIGN ch_TBar = chocx_Toolbar:CommandBars NO-ERROR.<BR></FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp; IF l_Ribbon THEN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUN SetWindowPos( h_Window:HWND, 0, 0, 142, 0, 0, {&amp;SWP_NOSIZE} + {&amp;SWP_NOZORDER}, OUTPUT ig_Tmp).<BR>&nbsp;&nbsp; OR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUN SetWindowPos( h_Window:HWND, 0, 0, 26, 0, 0, {&amp;SWP_NOSIZE} + {&amp;SWP_NOZORDER}, OUTPUT ig_Tmp).</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp; ch_TBar:AttachToWindow( i_hWnd ).<BR></FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>This is all in Progress 10.2A (but in 10.1A it should work as well).</DIV>]]>
   </description>
   <pubDate>Wed, 25 Feb 2009 09:14:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45860&amp;title=ribbon-control-and-progress-openedge-10-1a#45860</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : That doesn&amp;#039;t work for me...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45709&amp;title=ribbon-control-and-progress-openedge-10-1a#45709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4702">NormenT</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 21 February 2009 at 5:40am<br /><br />That doesn't work for me (OpenEdge 10.1A?) with 10.1A i have to youse the CommandBarsFrame control not the CommandBars contrrol. I tried everything but only recieve a "white stripe". Does anybody get things going with the CommandBars control not withe the CommandBarsFrame control ? (I think there might bei a difference )<DIV>&nbsp;</DIV><DIV>Normen</DIV>]]>
   </description>
   <pubDate>Sat, 21 Feb 2009 05:40:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45709&amp;title=ribbon-control-and-progress-openedge-10-1a#45709</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbon Control and Progress OpenEdge 10.1A : I managed to add the Ribbonbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45584&amp;title=ribbon-control-and-progress-openedge-10-1a#45584</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4811">adwild2</a><br /><strong>Subject:</strong> 12708<br /><strong>Posted:</strong> 18 February 2009 at 3:22am<br /><br />I managed to add the Ribbonbar to a Progress window. I do this by attaching the Ribbon to the Windows-window and moving the Progress-window 142 pixels down using the SetWindowPos API. Here an example, I&nbsp;hope this will fix it for you too : <DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>/* SetWindowPos() Constans */<BR>&amp;GLOBAL-DEFINE SWP_NOSIZE&nbsp;&nbsp;&nbsp;&nbsp; 1<BR>&amp;GLOBAL-DEFINE SWP_NOMOVE&nbsp;&nbsp;&nbsp;&nbsp; 2<BR>&amp;GLOBAL-DEFINE SWP_NOZORDER&nbsp;&nbsp; 4<BR>&nbsp;&nbsp; <BR>PROCEDURE AddRibbonBar :<BR>DEFINE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARIABLE&nbsp; i_hWnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS INTEGER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NO-UNDO.<BR>&nbsp;&nbsp; RUN GetParent( h_Window:HWND, OUTPUT i_hWnd ). /* Get Windows-window */<BR>&nbsp; /* Move Progress-window 142 pixels down (= height of Ribbonbar) */<BR>&nbsp;&nbsp; RUN SetWindowPos( h_Window:HWND, 0, 0, 142, 0, 0, {&amp;SWP_NOSIZE} + {&amp;SWP_NOZORDER}, OUTPUT ig_Tmp).<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; ch_CommandBars:AttachToWindow( i_hWnd ).<BR>&nbsp;&nbsp; ch_RibbonBar:EnableFrameTheme().<BR>&nbsp;&nbsp; <BR>END PROCEDURE.</DIV><DIV>&nbsp;</DIV><DIV>PROCEDURE GetParent EXTERNAL "user32.dll" :<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp;&nbsp; PARAMETER ch_Window AS LONG.<BR>&nbsp;&nbsp; DEFINE RETURN&nbsp; PARAMETER ch_Parent AS LONG.<BR>END PROCEDURE.</DIV><DIV><BR>PROCEDURE SetWindowPos EXTERNAL "user32.dll" :<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER hwnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER hwndInsertAfter AS LONG.<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER x&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER cx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER cy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>&nbsp;&nbsp; DEFINE INPUT&nbsp; PARAMETER fuFlags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>&nbsp;&nbsp; DEFINE RETURN PARAMETER ReturnValue&nbsp;&nbsp;&nbsp;&nbsp; AS LONG.<BR>END PROCEDURE.</DIV><DIV>&nbsp;</DIV><DIV></pre></td></tr></table></DIV>]]>
   </description>
   <pubDate>Wed, 18 Feb 2009 03:22:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12708&amp;PID=45584&amp;title=ribbon-control-and-progress-openedge-10-1a#45584</guid>
  </item> 
 </channel>
</rss>