<div dir="ltr">Hi,<div><br></div><div>Thank you for sharing this, I tried removing the toplevel, and checking the visibility option, but it didn't help, unfortunately.</div><div><br></div><div><br></div><div>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</div>
<div><font face="courier new, monospace">mpWriterButton = new PushButton( this, STC_BUTTON_STYLE );</font><br></div><div>in the ctor of BackingWindow. The reason I tried this is because .ui buttons use pointers to buttons as well.</div>
<div>This causes a crash in <font face="courier new, monospace">Window::PreNotify(NotifyEvent&)</font> when mpWriterButton is clicked, the other buttons work fine.</div><div><br></div><div>When I change the button to be a .ui button, and instead of the above I call this:</div>
<div><font face="courier new, monospace">m_pUIBuilder = new VclBuilder(this, getUIRootDir(), "modules/StartModule/ui/startcenter.ui", "StartCenter");</font></div><div><font face="courier new, monospace">get( mpWriterButton,    "writer");</font></div>
<div>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.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 July 2013 01:48, Efe Gürkan YALAMAN <span dir="ltr"><<a href="mailto:efeyalaman@gmail.com" target="_blank">efeyalaman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I solved my problem. I hope it helps you too. <br><br>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.<br>


<br>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.<br><br>Hope it helps.<br><br>Cheers.<div class="HOEnZb">
<div class="h5"><br clear="all">

<br>-- <br>Efe Gürkan YALAMAN<br><a href="http://about.me/efegurkan" target="_blank">http://about.me/efegurkan</a><br>
</div></div></blockquote></div><br></div>