DISQUS

Reflections of my thoughts: Windows 7 Ribbon – Part 2 – How handle ribbon control events?

  • Wael Salman · 3 months ago
    Hi,

    I made a huge research in order to make sure that Visual Studio 2010 Beta has Ribbon Framework, and especially in .Net and C#. Some people say that they will provide it , and some others say they will not.

    What can you tell me about that ??
    How can we use this Ribbon using C# .Net , Drag and drop into the designer??
  • Sarat · 3 months ago
    Windows API Code Pack wont support ribbon in their current release. May be in future.
  • Wael Salman · 3 months ago
    Thanx
  • Donald Bracewell · 1 month ago
    Hello, I belive I have implemented all the code you talk about in this post for my single document MFC application. However, I face the problem that the ribbon does not show up after the application start. I have to resize the window to make the ribbon appear. The ribbon even flashes like if some update UI event is missing or something. Do somebody elese has such problem? Or could you suggest what's going wrong in my app? I did not try your code for dialog based MFC, so there may be someting elese to do with SDI/MDI apps, maybe... ? Thanks.
  • Matt Seemon · 1 month ago
    The Ribbon is designed to appear only if the form of a certain minimum size. The Default form size in Visual Studio is too small to display it. You will notice this behavior in Paint and Wordpad, which have the ribbon implemented.
  • Matt Seemon · 1 month ago
    Try this. Serious of Article on how to use Windows Ribbon using C#
    http://blogs.microsoft.co.il/blogs/arik/archive...
  • Matt Seemon · 1 month ago
  • Donald Bracewell · 1 month ago
    Hello again, I managed to run a ribbon inside of SDI Application. I had to suppress some initialization that VC2008 wizard generated automatically in CMainFrm::OnCreate and Application::InitInstance functions. I also faced the problem when trying to play with "htmledit" sample from Windows 7 SDK. My CScrollView class could not give aditional room for the ribbon - so it covered all the window frame until I made my CFrameWndEx class a CFrameWnd and until I implemented RibbonBar class as well (see SDK). I found that difficult to find any article covering my problems while implementing ribbon, except this forum, so I'm willing to share my code if there is interest. I would appreciate any further tips.