<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi!<br>
<br>
I've been having fun with <a
href="https://bugs.freedesktop.org/show_bug.cgi?id=33794">Bug
33794</a> 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.<br>
<br>
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&).<br>
<br>
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.)<br>
<br>
I've got stucked at this point. I would really appreciate some help.<br>
<br>
----------<br>
- The code of the start window is implemented in the
backingwindow.hxx/cxx in framework module.<br>
- Each button is layed out in BackingWindow::initControls() by
BackingWindow::layoutButton() function.<br>
----------<br>
<br>
Thank's,<br>
Dávid<br>
<br>
<br>
<br>
</body>
</html>