Axel Napolitano
Guest
|
Hi,
i've added a gallery to my ribbon. The designer created the following code:
this.fillColorGallery.Caption = "Fill Color";
this.fillColorGallery.Id = "adxRibbonGallery_83c301962ed1450fb62901d1712526fd";
this.fillColorGallery.IdMso = "ShapeFillColorPicker";
this.fillColorGallery.ImageTransparentColor = System.Drawing.Color.Transparent;
this.fillColorGallery.Ribbons = AddinExpress.MSO.ADXRibbons.msrPowerPointPresentation;
this.fillColorGallery.ShowCaption = false;
However, the caption is visible in runtime (in designer it is hidden). This is not limited to this specific gallery. Same happens for ShapeOutlineColorPicker, OutlineWeightGallery, OutlineDashesGallery so far - maybe for others too.
If i add a custom caption, this caption is shown - no matter if "ShowCaption" was set to true or false. If i do not specify a custom caption, the control's caption is shown - also without taking care about "ShowCaption".
OnRibbonBeforeLoad delievers the following markup for the gallery:
<gallery enabled="true" getVisible="getVisible_Callback" idMso="ShapeFillColorPicker" label=" " size="normal" />
You can see, that the getShowLabel-attribute does not exist and also the showLabel-attribute (as an alternative) was not set.
In a different project i use directly XML to define the ribbon. There is the following tag:
<control idMso="ShapeFillColorPicker" label="Fill color" showLabel="false" />
This works as expected. As you can see, i'm using the "control" tag and not the "gallery" tag. The "control" tag cannot be created using GUI riboon designer of ADX AFAIK.
I'm not sure if i'm doing something wrong or if it is a bug in ADX (what is what i think). I'm using latest downloadable production built of ADX. I'm using VisualStudio 2015 on Windows 10. The project's target dotnet framework version is set to 4.0.
As an workaround i'm now transforming the generated XML on OnRibbonBeforeLoad. As you may be able to imagine, i'm not satisfied with this workaround, but i do not see any other quick solution, because it is ugly and comes with drawbacks and traps.
Help is highly appreciated, because it is "stopper" for me at the moment. |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
Hello Axel,
I've reproduced the issue; I assume this is a bug in Add-in Express. It is now filed down under #8434 in our bug-tracking system. Unfortunately, we won't be able to provide a fix for it in the upcoming build; we are going to publish the new build today or tomorrow. When the issue is fixed, I'll let you know.
Andrei Smolin
Add-in Express Team Leader |
|
Andrei Smolin
Add-in Express team
Posts: 18793
Joined: 2006-05-11
|
Hello Axel,
I've found out that I didn't inform you that the behaviour is expected. This is how the Ribbon works in case of a built-in gallery. Please forgive me.
Andrei Smolin
Add-in Express Team Leader |
|