gtk2: Setting the form shape requires at least one TWinControl on form
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Documentation
http://wiki.lazarus.freepascal.org/LCL_Tips#Creating_a_non-rectangular_window_or_control
says - just call set SetWindowRgn(Handle,Rgn,true) on form Handle or call SetShape(HRGN) and will get a shaped form
GTK2 widgetset relies on presence in Widget structure non-null field .Window to set the form region properly
Window := GetControlWindow(Widget);
if Window = nil then
Exit(0);
Steps to reproduce:
Run the attached test.
Should be round-corner shaped form.
Reparent all the controls to the Form from the TPanel, run the test -
Form become generic rectangular-shaped