View Issue Details

IDProjectCategoryView StatusLast Update
0030385LazarusWidgetsetpublic2020-05-16 00:00
ReporterAnton Kavalenka Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64 GTK2OSDebian GNU/Linux 
Product Version1.7 (SVN) 
Summary0030385: gtk2: Setting the form shape requires at least one TWinControl on form
DescriptionDocumentation
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 ReproduceRun 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
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetGTK 2
Attached Files

Relationships

related to 0037073 closedMattias Gaertner gtk2: SVN r63143 broke setting the form shape 

Activities

Anton Kavalenka

2016-07-18 15:57

reporter  

laztest91.zip (129,586 bytes)

Anton Kavalenka

2016-07-18 15:58

reporter   ~0093756

Reproducibility => always

Juha Manninen

2020-05-15 23:59

developer   ~0122828

If the test application is wrong as mentioned in related 0030385 then please remove it.

Issue History

Date Modified Username Field Change
2016-07-18 15:57 Anton Kavalenka New Issue
2016-07-18 15:57 Anton Kavalenka File Added: laztest91.zip
2016-07-18 15:58 Anton Kavalenka Note Added: 0093756
2020-05-15 23:47 Juha Manninen Relationship added related to 0037073
2020-05-15 23:59 Juha Manninen Note Added: 0122828
2020-05-16 00:00 Juha Manninen Reproducibility have not tried => always
2020-05-16 00:00 Juha Manninen LazTarget => -
2020-05-16 00:00 Juha Manninen Widgetset GTK 2 => GTK 2