Forum  General Visual ...  How do I...?  Convert to 6.4 - ToolBar issue
Previous Previous
 
Next Next
New Post 12/21/2011 10:54 AM
Resolved
  dleland
628 posts
www.kadant.com
1st Level Poster


Convert to 6.4 - ToolBar issue 

We have about 370 toolbars in our VWG application.  We are in the process of converting from 6.3.15 to 6.4.  All of our toolbars buttons in 6.3 have the text aligned to the right of the icon.  After converting to 6.4, all of the toolbar buttons have the text aligned underneath the icon.  I need to have the following added to each toolbar:  "TextAlign = ToolBarTextAlign.Right".  Any ideas how we could do that automatically without having to go into each toolbar and manually adding that?

Thanks,

Dave

 
New Post 12/21/2011 3:01 PM
Accepted Answer 
  palli
14313 posts
1st Level Poster




Re: Convert to 6.4 - ToolBar issue 

Hi Dave,

Unless you have some refactoring tool that does support this type of modification, you can't really add it directly, except manually. There are plans to add support for Legacy settings in release d, that would help in this scenario, but it hasn't been implemented yet, so it will not help either.

What comes to mind is to create a class, CustomToolbar, that will inherit from ToolBar and in the constructor call the base's constructor and then set the TextAligh property to Right. Then you would need to do a global scan/replace on your project, replacing Gizmox.WebGUI.Forms.Toolbar to your CustomToolbar type, making sure it will not replace for instance "Gizmox.WebGUI.Forms.ToolBarButton" in the process.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 12/21/2011 6:37 PM
  dleland
628 posts
www.kadant.com
1st Level Poster


Re: Convert to 6.4 - ToolBar issue 

Thanks for the idea.  We want to keep everything in our application as "Vanilla" as possible so probably won't create a custom toolbar.  I have a Windows application called "Advanced Find and Replace".  I'm going to use that to help me.  It won't do all of it but it will help.

So far, things look pretty good in the conversion.  I do see that the TreeNode images in 6.3 get resized automatically whereas in 6.4, they don't.

Dave

 
New Post 12/30/2011 10:42 AM
  palli
14313 posts
1st Level Poster




Re: Convert to 6.4 - ToolBar issue 

Hi Dave,

You are welcome,

Glad the conversion is going well.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Convert to 6.4 - ToolBar issue
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS