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


Hi,

Thank you for sharing this, I tried removing the toplevel, and checking the
visibility option, but it didn't help, unfortunately.


I decided to take a different approach. I started again with the original
source files which use resource files, and changed only one button to be
dynamically allocated, so I call
mpWriterButton = new PushButton( this, STC_BUTTON_STYLE );
in the ctor of BackingWindow. The reason I tried this is because .ui
buttons use pointers to buttons as well.
This causes a crash in Window::PreNotify(NotifyEvent&) when mpWriterButton
is clicked, the other buttons work fine.

When I change the button to be a .ui button, and instead of the above I
call this:
m_pUIBuilder = new VclBuilder(this, getUIRootDir(),
"modules/StartModule/ui/startcenter.ui", "StartCenter");
get( mpWriterButton,    "writer");
it's not drawn, but it actually works; I can select it using the arrow
keys, and when I press enter Writer starts. Since I left the manual
formatting code for the buttons intact for now, I'd expect that to properly
size and position this button, but it doesn't.


On 3 July 2013 01:48, Efe Gürkan YALAMAN <efeyalaman@gmail.com> wrote:

Hi,

I solved my problem. I hope it helps you too.

The layout thing I mentioned before is related to ui file. If ui file
contains a toplevel it returns false. I cleaned toplevels and it returns
true now. It is probably not related to your problem.

So I figured out on other ui files almost everything has visible option
setted "True". I changed mine that way and checked with ui-previewer.
Problem is gone now.

Hope it helps.

Cheers.


--
Efe Gürkan YALAMAN
http://about.me/efegurkan


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.