|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| Make a button multi-line - Wish list for software localization tool - Technical Support (You need to be registered at the forum to write) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
MikeBz Member
|
Often I need to resize a button (pushbutton, checkbox or radio-button) to fit it's newly-translated text. Sometimes my dialog boxes don't have the space to resize the button horizontally, but do have space to resize vertically and make the button multi-line (a trick I used to use a lot when translating resources the hard way using the resource editor in Visual Studio). I need to be able to add the BS_MULTILINE style to the button - is there a way of doing this is Sisulizer? Mike
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
Are you localizing binary (.EXE) or resource (.RC) files?
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
MikeBz Member
|
I created my Sisulizer project from a .exe file, Sisulizer then creates a resource dll for each language. Mike
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
With the current version there are no way to edit Windows styles (for example to add BS_MULTILINE). I have to think about if it would be easy to implement. I let you know later.
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
MikeBz Member
|
Thankyou for the quick response. Mike
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
I implemented it. It will be available in the build 1.6.11. You can modify any flags. Although some primary flags has been protected. Attachment: Style.PNG (Downloaded 31 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
MikeBz Member
|
Superb, thankyou. I look forward to downloading 1.6.11. Mike
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
It has been implemented to 1.6.10 http://www.sisulizer.com/downloads.shtml Rigth click any control and choose Style or ExStyle Attachment: Style.PNG (Downloaded 23 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Ilkka.Salmenius Administrator
|
Then you can edit the Style rows. Press the browse "..." button on the right of a cell. Attachment: Styles.PNG (Downloaded 22 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
MikeBz Member
|
That's great. I don't want to be greedy, but it would be nice if multi-line pushbuttons did display as mult-line in the form editor. Mike
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
MikeBz Member
|
Actually it's not just pushbuttons, it's check boxes too (and maybe radio buttons?) - if the original is not multi-line then the form editor does not show items as multi-line even if they are in the translation. I'm trying to use the form editor to re-layout my translated dialog boxes so that all the (longer) text fits. Mike
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
I am sorry but that I can't implement. In Windows the same button class is used for push buttons, check boxes and radio buttons. In Sisulizer each push button, radio button and check box is mapped to their own classes (TVisButton, TVisRadioButton, TVisCheckBox). The TVisButton can't be "translated" to TVisCheckBox. However I can implement some minor changes inside the class (for example multiline). I will implement this to the next build. Would it be better if you prepare you dialogs better for localization? Make sure that there is enough room between controls and so on. http://www.sisulizer.com/support/developers-corner/preparing-delphi.shtml Ilkka
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
MikeBz Member
|
Hi Ilkka, Maybe I haven't made myself clear. I am not trying to change the type of a button (e.g I don't want to change a pushbutton to a checkbox). I want to make some pushbuttons, some checkboxes, and some radio buttons multi-line in the translation where they are not multi-line in the original. The changes you have made allow me to do that, but when I change any type of button to multi-line in the form editor it does not display that item as multi-line. Items which are multi-line in the original do display as multi-line in the form editor. I understand your point about preparing dialogs better for localization, but if I make every text/button/etc. object wide enough for the widest language then other languages look ugly with unnecessarily large spaces between items and unnecessarily tall/wide buttons etc. Our primary target language is English and I don't want to spoil the look of the English product for the 1 or 2 customers who want e.g. Spanish or German (ours is a very low volume product). It would be really nice (for me - maybe not for others!) if the form editor worked in the same way as the resource editor in Visual Studio, e.g. drag rubber band to select multiple items, align/resize multiple items (last item selected is the target size/alignment etc.). This is a passing comment not a request... Regards, Mike
|
|||||||||||||
| ||||||||||||||
| Current time is 01:01 am | |
| Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Wish list for software localization tool > Make a button multi-line | |
Sisulizer software localization tool - Three simple steps to localize