On Sun, 4 Apr 2010, Michael Van Canneyt wrote:
Great, thank you.
Maybe you can also have a look at the following bug:
- Create main form as above.
- Additionally Set docksite=true for the main form.
Run program.
- Drop panel outside main form. DockForm appears, panel is on it :-)
- Now drop the panel back on the main form.
-> The panel disappears.
All properties I thought of check out OK: visible, parent (it is main form),
it's size.
(size of the form).
The same problem happens when you manually dock the panel back on the main
form:
I do this with the following code in a button on the main form:
Panel1.ManualDock(Self,Self,alTop,true);
I tried debugging it, but the error escapes me. All seems to be working as it
should,
except that the control is not drawn on it's new location :/
It's not a panel problem, I tried with some other controls as well.
(tested on GTK2, latest Lazarus and FPC)
Follow-up, after tip from Hans-Peter Diettrich:
When building the LCL with -dOldAutoSize, the panel is shown.
Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus