In Volume 2 you could set the size of buttons and they would stay the same size however wide the toolbar was, in Volume 3 this doesnt happen and the buttons are spread across the width of their container....... how can I get them to work the way they used to in Vol. 2?
Hi there,
Well, this is an issue we already have addressed. Fix will be available in the earliest to come hot fix.
Hope this helps.
thanks Anton, do you have an estimated release date for the hotfix?
Andy
Just a note to say that this was in fact fixed in the Patch dated 12/19/08, version 8.3.20083.2021.
And thank you for posting that is would be fixed! I started researching the problem, found this thread, downloaded the hot fix, porblem solved!
Unfortunately, this may work for non-styled toolbars. But for my application with AppStylist applied, it's still messed up. As of 8.3.20083.2039.
I am having this issue with 2009 vol 1, is there a fix for 2009 vol 1?
Hello ASanders,
In general every volume release contains all fixes that has been released as a hot-fix for the ancestors. So you may consider 2009 vol. 1 contains all fixes that has been released as hot-fix for 2008 vol. 3.
Once again, would you describe better the situation you have, since it might be somehow different than the situation described in the begining of this thread.
It is good to know that buttons (or any toolbar item) can be sized in two ways:
1. Apply default style for all elements within a ToolBar. This is achievable by the ButtonStyle property of the ToolBar itself:
< ButtonStyle Width="60px" />
2. Apply style to the button itself:
<igtbar:TBarButton DisabledImage="" HoverImage="" Image="./Images/home_24.gif" Key="HOME" SelectedImage="" Text="Home"><Images><DefaultImage Url="./Images/home_24.gif" /></Images><DefaultStyle Width="120px" /></igtbar:TBarButton>
I hope this will help you solving issues.
Here is a code snippet with only one button, I added the default style stuff and it still stretches the toolbar buttons evenly across the entire toolbar, this code displays all tool bar buttons 44px wide when using 2008 vol 1. What am I doing wrong in 2009 vol 1?
<igtbar:UltraWebToolbar ID="UltraWebToolbar1" runat="server" EnableAppStyling="True" StyleSetName="Office2007Blue" Height="34px" Width="100%" Font-Size="X-Small" ItemWidthDefault="44px" OnButtonClicked="UltraWebToolbar1_ButtonClicked" BorderStyle="None" >
<
<DefaultStyle BorderStyle="None" Cursor="Hand">
</DefaultStyle>
<ButtonStyle BorderStyle="None" Cursor="Hand" Width="44px">
<Items>
<Images>
<DefaultImage Url="./Images/Back.png" />
<DisabledImage Url="./Images/Back_Disabled.png" />
<DefaultStyle Width="44px"></DefaultStyle></igtbar:TBarButton>
</
</Items>
<HoverStyle BorderStyle="None" Cursor="Hand">
</HoverStyle>
<ClientSideEvents Click="UltraWebToolbar1_Click" />
</igtbar:UltraWebToolbar>
I Figured it out, I had to remove the width property on the toolbar itself, it magically makes the toolbar 100% without that propety and makes the buttons the width specified instead of stretched. Wow that was easy, and straight forward just like everything else.