I'm guessing then that setting the width and height OnCreate won't work because that's where they're overridden; a very messy solution would be to set a TTimer to 5ms or so and then change the width.<br><br>
<div class="gmail_quote">On Thu, Dec 17, 2009 at 1:40 PM, Phil Hess <span dir="ltr"><<a href="mailto:macpgmr@fastermac.net">macpgmr@fastermac.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In my TCustomForm-based design control, I would like it to have an initial size of my choosing rather than the default 400 wide, 300 high. It appears as though these values are hardwired in the FormEditor1.CreateComponent call in TMainIDE.CreateNewForm, ignoring anything that I set Width or Height to. All other properties that I set in my constructor are honored, just not these.<br>
<br>
Any workaround for this?<br>
<br>
Thanks.<br>
<br>
-Phil<br>
<font color="#888888"><br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</font></blockquote></div><br>