How to wrap the Button Name in ArcGIS Pro SDK

1130
6
Jump to solution
05-11-2017 06:23 AM
JanakiGattu1
New Contributor III

Hi,

I would like to wrap the Text name similar to this for a button in ArcGIS Pro SDK...It would be great if you can help me out in this.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

Hi Janaki

Pro does the wrapping of the button caption. Add-in developers don't have to do this.

Thanks

Uma

View solution in original post

6 Replies
UmaHarano
Esri Regular Contributor

Hi Janaki

You cannot force the caption of a Pro Button to wrap. However, your add-in button's caption will wrap using the same rules as a Pro Button. So for example, if your button caption is "Select by Attributes" you will see the same wrapping behavior as the Pro's Select by Attributes button.

Also, note - The caption for a button can only take up 2 lines on the ribbon. So if you have a really long button caption, it will take up that amount of space on the ribbon.

Thanks

Uma

JanakiGattu1
New Contributor III

Hi Uma, 

Thank you for the quick update... Really appreciate... It would be great if you could let me know the Process for wrapping up my custom button caption... What and where do I need to change the settings to wrap up my custom button. 

0 Kudos
UmaHarano
Esri Regular Contributor

Hi Janaki

Pro does the wrapping of the button caption. Add-in developers don't have to do this.

Thanks

Uma

JanakiGattu1
New Contributor III

Hello Uma,

Please find the below image for same...I am not able to wrap the text of the button. Do suggest me how to go ahead.

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Please open the config.daml file of you add-in project and find you custom button, then change the text in the caption attribute from "DataPreparation" to "Data Preparation" or "Prepare Data" (please note the space between words).  Then rebuild and run the add-in.

0 Kudos
JanakiGattu1
New Contributor III

Hello Kaiser,

Perfect..It worked for me...Thanks a lot....