Hi,
I am using the UltraWebToolbar in perhaps a slightly unusual way, and that is to implement a dyanamic breadcrumbs trial. It is all working fine except for one small problem, and that is the width of the buttons I am using to implement each component of the trial. I'd like the width of the button to match the width of the text it contains, but I cannot find a way of accomplishing this. I know that I can set a fixed width for a button but given that the text is dynamic, this presents a problem. Is there any kind of "auto fit" property I set anywhere to tell the button to match to the size of the text, rather than expanding so that the whole width of the page is used?
I hope that makes sense and that somebody is able to provide an answer.
Thanks,
Ben
I've had to do something similar before with labels on the toolbar, I acheived it by using the System.Drawing.Graphics.MeasureString method.
Dim stringLength As Int16 = graphic.MeasureString(charString, Font).Width
You'll need to create a Font object for the second parameter.
Andy