PDA

View Full Version : [SOLVED] ibox only showing label for AlignCenter



JT7
01-20-2020, 12:16 AM
My custom box is ONLY showing the label for Center and I don't know why, I have tried removing the left and right labels (label="Left"), changing their names, however it only ever shows center and the others have no labels at all




<box id="box3" boxStyle="vertical">
<control idMso="AlignLeft" label="Left" />
<control idMso="AlignCenter" label="Center" />
<control idMso="AlignRight" label="Right" />
</box>

Paul_Hossler
01-20-2020, 08:38 AM
Hmmm - interesting

Adding size="large" to the buttons works (sort of) but they look horizontal


25844


I'm guessing that using a <box> container with small buttons is handled differently




<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabHome" >
<group id="customGroup1" label="Group 1" insertAfterMso="GroupEditingExcel" >
<box id="box3" boxStyle="vertical">
<control idMso="AlignLeft" size="large" label="Left" />
<control idMso="AlignCenter" size="large" label="Center" />
<control idMso="AlignRight" size="large" label="Right" />
</box>
</group>
</tab>


</tabs>
</ribbon>


</customUI>

JT7
01-20-2020, 03:44 PM
Thank Paul,
I ended up just using small buttons not in a box and it worked, really strange though

Andy Pope
01-21-2020, 06:25 AM
Set the showLabel property to True



<box
boxStyle="vertical"
id="Box1">
<toggleButton
idMso="AlignLeft"
label="Left"
showLabel="true"/>
<toggleButton
idMso="AlignCenter"
label="Center"/>
<toggleButton
idMso="AlignRight"
label="Right"
showLabel="true"/>
</box >

Paul_Hossler
01-21-2020, 08:36 AM
Set the showLabel property to True

That's interesting -- thanks

I knew about 'showLable' but since the default = "true" I never bothered to try it

That'll teach me to assume anything