Results 1 to 3 of 3

Thread: [RESOLVED] Localization - Resizing and Repostioning

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    11

    Resolved [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

  2. #2
    Frenzied Member
    Join Date
    Mar 2005
    Location
    Sector 001
    Posts
    1,577

    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).
    VB 2005, Win Xp Pro sp2

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width