Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi!

I've been having fun with Bug 33794 <https://bugs.freedesktop.org/show_bug.cgi?id=33794> for a while. In some translations the Open button's text on LibreOffice start window is overlapped by the small triangle symbol on the right of the open button which is for recent files popup menu.

The problem is that the width of the symbol on the open button is not taken into account at calculation of overall button width. Those buttons on the start window come from vcl module (ImageButton, MenuButton. In the function which lays them out they are passed as PushButton&).

To solve this issue I have to find a way somehow to extract dynamically this symbol width information in code. I figured out that I can get it by functions Button::ImplGetSymbolRect().getWidth() but unfortunately it gives a kind of uninitialized value ( -32767 ) during the whole creation of start window I don't know why. (If I call these functions after the the start window showed up, they give the right information I've checked it.)

I've got stucked at this point. I would really appreciate some help.

----------
- The code of the start window is implemented in the backingwindow.hxx/cxx in framework module. - Each button is layed out in BackingWindow::initControls() by BackingWindow::layoutButton() function.
----------

Thank's,
Dávid




Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.