[RESOLVED] Localization - Resizing and Repostioning
Hello
I am experimenting with localization on my VB.net desktop application.
I have a nice form design that looks great with all controls (labels, buttons, etc) in English, and I set "Localizable" to true for all my forms.
I am using a (very useful) third-party tool called Sisulizer to help with the localization. I set a French "translation" of all my strings to be "FRENCH - " plus the original string (e.g. a "Cancel" button now says "FRENCH - Cancel").
The buttons are now too small for the text. I can set AutoSize=True for all the buttons (and other controls) and they expand to allow for the text, which is great; but they DON'T reposition, and end up overlapping each other.
Question: Is there any way in Visual Basic/Visual Studio to auto-reposition all the controls, nicely aligned with one another, WITHOUT writing some long-winded "reposition controls" routine?
Or is it simply a fact of life that, when using RESOURCE files (localizable forms), one has to resize and reposition each control (those that need it), for each language one wishes to implement? (Sisulizer offers a GUI to do this, you can resize your forms and controls per language, if this is the "only" way.)
Any and all feedback appreciated.
Thanks,
Matt C
Re: Localization - Resizing and Repostioning
I was part of the team localizing the German version of Office 2007. The German strings rarely had the same length as the English ones so many controls, tabs and dialogs had to be resized manually (and sometimes even rearranged).
Re: Localization - Resizing and Repostioning
It really depends on your UI. You can use TableLayoutPanels and FlowLayoutPanels and set the AutoSize properties of your controls to True. That way much of the UI will position itself automatically. That said, the result may well not be what you want in many, if not most, cases.