[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-XBoard] [bug #35181] Shortened menunames in tinymode not transl

From: h.g. muller
Subject: Re: [Bug-XBoard] [bug #35181] Shortened menunames in tinymode not translated
Date: Wed, 28 Dec 2011 19:44:37 +0100

1) It may be necessary to have a minimum width, so small texts will not show less an a letter. Modus in German in size -tiny is close to show less than an M. It could be worse in other languages.

This suggest tome you would be using too-large a font.

2) When you have enough space the menu buttons will be enlarged to fill the whole width of the window. That breaks the -titleInWindow option.

A possible solution might be to create the buttons first without width speficication, then messaure if they are too wide and make the widest buttons narrower.

OK, this is feasible (and better). I pushed the patch again to hgm.nubati.net.

Future improvement would be to put this scaling in a separate routine, and also call that on board-width changes (currently only due to variant changes). I already store the menuButton widgets and their nominal size in the menuBar struct during reation to facilitate this.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]