Search

MFC Ribbon's Gallery Button's Column property does not work by rtischer8277

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 683164
Opened: 8/5/2011 8:51:06 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
1
Workaround(s)
0
User(s) can reproduce this bug
The Property in question has the prompt text: "Specifies the number of icons in row." The equivalent xml item is <ICONS_IN_ROW>. At run time, the number of icons appearing is 0 regardless of the Columns setting. Oddly enough, however, occassionally it has worked and obviously works in the RibbonGadgets sample. Hovering over the GalleryButton's combo scroll buttons sometimes shows Row 1-0 of 0 for the middle scroll button and sometimes for the downarrow scroll button, when clicked, shows all the gallery icons. The general behavior is very random.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 2010 SP1

Steps to reproduce

Create a simple MFC default project and check Use Ribbon. Use the Ribbon resource editor to add a Panel and a Gallery Button to the Home panel. From the RibbonGadgets res folder copy Pallette.bmp into the repro project's res folder. Import this resource into the project and use it as the Icons resource property. Set the icon width to 64. Compile and run.

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

The gallery button icons do not show up. Only a gallery button with no icons plus scroll controls shows up. Hovering over these scroll arrows shows the following tooltips: middle arrow: "Row1 0-0", bottom arrow: "more". Clicking on the "more" displays the whole gallery properly. Changing the Columns property does not affect the runtime display.

Expected results

The number of gallery icons displayed at runtime should be the number of in the Columns property.
File Attachments
File Name Submitted By Submitted On File Size  
GalleryTest.zip 8/5/2011 320 KB
Sign in to post a comment.
Posted by Microsoft on 10/27/2011 at 1:24 PM
Hello,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by MS-Moderator07 [Feedback Moderator] on 8/7/2011 at 7:33 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by MS-Moderator01 on 8/5/2011 at 9:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by emerald8277 on 8/11/2011 at 5:11 AM
The default six gallery icons can be made to appear by making sure the following Gallery Button Properties settings and tasks are completed:
1) Button Mode: False // this is obvious
2) Columns: 0     // may be set or unset. This currently has no effect.
3) Large Image Index: 3 // must be valid large image index. If not set, the gallery button will show as collapsed
4) Add Handler to the gallery command ID // without this, the ribbon will show 6 icons wide, but blanks instead of icons

Specifying the number of columns using the Columns attribute on the Gallery Button icons still doesn't work, but at least you can get the default icon behavior to function.