I've just started adding the LayoutControl to an existing project, to see if it will help us internationalize. I'm hoping that the LayoutControl will automate enough of the layout process that the translator can work on a text file, without having to manually adjust form sizes.
I'm trying to create a button control (either SimpleButton or standard Button) within the layout with the following properties:
- The button by default is large enough to fit the text. The text in Swedish will probably be 50% longer than the text in English.
- When the form shrinks, some of the button text remains visible.
- When the form grows, the button will not grow significantly larger than the text.
I can do #2 by setting a MinSize in the LayoutControlItem, but I'm having problems with #1 and #3. I can control the maximum size of the button using the MaxSize in the LayoutControlItem, but the MaxSize is different for each language, and I don't know it until the translator has written the text. Any suggestions?