Matthias Benkmann wrote:
On 9/23/05, Carsten Driesner <[EMAIL PROTECTED]> wrote:

Thanks. The width aspect is okay now. But what about the height? I'd
like to have my ComboBox always have the same height as the ComboBoxes
OOo has by default, such as the font selector. I could empirically
determine a factor to multiply the font height with that results in
the size being the same as the font selector, but that doesn't seem
like a robust solution. How does the font selector ComboBox determine
its height? Is there a formula I can copy?  Maybe a pointer to the
appropriate source file and method in the OOo sources where the height
is computed for the font selector could help me.

Hi Matthias,

Sorry for the late answer, but we are now very busy working on OOo 2.0.1. The height must be calculated manually, there is no way to retrieve this value. The best way would be to use the font height + the border (top/bottom, normally 1 pixel) + some space between top/bottom (1 or 2 pixels). You have to find good values by try and error.

border -------

space  -------
         *
ch.      *
height   *
         *
         ****
space  -------

border -------

The toolbar controllers which are internally implemented use resources to define the width and height or their combo box. Resources cannot be used by external code/add-ons.

As we already know that this area (support for complex user interface elements) must be easier to use, we hope to provide a better solution in the next major version.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to