In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article to share with you is about the Visual Studio Ribbon panel level is what, Xiaobian think quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.
Visual Studio has a lot to learn, here we mainly introduce Visual Studio Ribbon Panel, including Visual Studio 2010 provides us with a lot of controls and other aspects. In addition to the command buttons we introduced last time, there are CMFC Ribbon Gallery, CMFC Ribbon Color Button, CMFC Ribbon Edit, CMFC Ribbon Progress Bar and so on. Using these controls properly, we can create rich Ribbon interfaces that enhance software usability. In this article, we'll show you how to use these controls to create more complex Ribbon interfaces and perform more complex interactive tasks.
Detailed analysis of Visual Studio auto keywords
Description Visual Studio assert macros
Analyze Visual Studio rvalue references
Visual Studio IntelliSense
Chat Visual Studio Ribbon Bar
To better understand and create Ribbon interfaces, let's take a look at the hierarchy of Ribbon interfaces before we get into the details of the various controls. In the previous chapter, we introduced that the Ribbon interface is mainly composed of Visual Studio Ribbon Bar (CMFC Ribbon Bar), and the Visual Studio Ribbon Bar is mainly divided into three levels:
◆ Category (CMFC CarbonCategory)
Obviously,"classification" is a combination of commands of a similar kind. For example, in the Ribbon interface of Word 2007, Microsoft puts the commands related to inserting elements in the "Insert" page. When users want to insert other elements in Word documents, they can find the commands they need by switching to this page. Formally, Category appears as a Tab page on the Visual Studio Ribbon panel. We can add a new category to the Visual Studio Ribbon panel using the AddCategory() function:
//Add a command group (Category)"RibbonUI Category"
CMFCRibbonCategory *pRibbonUICategory = m_wndRibbonBar.
AddCategory(_T("RibbonUI Category"), IDB_WRITESMALL, IDB_WRITELARGE);
◆ Panel (CMFC CarbonPanel)
Panels are the next level of Categories. It's a more closely related set of commands. Panels are always placed in a category and are contained by that category. At the same time, the "panel" is a container that contains its next level of "elements." We can add a new "panel" to the "category" with the AddPanel() function:
//Add a Panel CMFCCarbonPanel *pTestPanel = pRibbonUICategory->AddPanel(_T("RibbonUI Panel"),m_PanelImages.ExtractIcon(1));
◆ Element (CMFC CarbonBaseElement)
"Elements" are controls in our usual sense. These controls are grouped and placed on various "panels" according to their respective functions, responsible for completing specific interactive tasks. Visual Studio 2010 provides a Ribbon interface "Elements" consisting primarily of command buttons (CMFC Ribbon Buttons). tool gallery (CMFC Banner Gallery), color button (CMFC Banner Color Button), edit box (CMFC Banner Edit), progress bar (CMFC Banner Progress Bar), etc. These classes are derived from CMFC CarbonBaseElement.
The above is what the hierarchy of the Visual Studio Ribbon panel is, Xiaobian believes that some knowledge points may be what we see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.