GTK2 TCustomControl paint not update
Original Reporter info from Mantis: JoshyFun @joshyfun
-
Reporter name: José Mejuto
Original Reporter info from Mantis: JoshyFun @joshyfun
- Reporter name: José Mejuto
Description:
Testing GeckoPort in my Ubuntu (running in Virtualbox) I had problem not present in the Win32 version. GeckoBrowser is a TCustomControl descendent and in the paint event I simply request the underlaying Gecko to repaint the Window, but this only happends when I change something in the Widget or in a parent widget.
Gecko browser is aligned alTop, so if I change something in the Width the browser disappears, if I change something in height browser magically appears but widget size does not change.
The visual effect is like the browser is rendered and just after the browser the CustomControl canvas is draw over it.
Adding a "Self.AutoSize" in the paint override fixes the problem and the browser is rendered as expected (as Win32).
Steps to reproduce:
I was unable to write a synthetic code that triggers the problem, so when all operations are done by the LCL everything seems to look fine, canvas drawing works, etc. So the only way to check it is using the Geckoport code (Additional information link).
Additional information:
[Geckoport]
http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/geckoport/
[Gecko setup]
http://wiki.lazarus.freepascal.org/GeckoPort#GTK2_widgetset
Mantis conversion info:
- Mantis ID: 18188
- OS: Linux
- OS Build: Ubuntu 9.04
- Build: 28684
- Platform: i386
- Version: 0.9.29 (SVN)