View Issue Details

IDProjectCategoryView StatusLast Update
0025572LazarusLCLpublic2014-02-16 10:25
ReporterTiml Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86OSMageia Linux 
Product Version1.2.0RC2 
Target Version1.2.0 
Summary0025572: Regression in TGroupBox in Gtk2
DescriptionIn the attached project, when label3 is set Autosize=True, when the Change Text button is clicked the caption on Label3 disappears.
Steps To Reproduce1) Compile and run the project
2) Click the 'Change Text' button - Label3 caption does not display

3) Set Autosize to False ( you may need to resize the label to display its initial caption correctly )
4) Compile and run the project
5) Click the 'Change Text' button - Label3 caption shows correctly i.e 'Refreshed Label'

An alternative way of showing the problem is to set the colour of Label3 without changing anything else in the project. When the 'Change Text' button is clicked the label is no longer visible.
TagsNo tags attached.
Fixed in Revision44093
LazTarget1.2
WidgetsetGTK 2
Attached Files

Activities

Timl

2014-01-21 08:52

reporter  

invisible_label.tar.gz (10,240 bytes)

Martin Friebe

2014-01-21 17:26

manager   ~0072593

Updated subject

The label disappears in ButtonDown too, if label3 is not updated.

When any of the labels is changed
 TGtk2WidgetSet.InvalidateRect
receive a rect relative to the clientrect of the groupbox.
This does not take in account that the clientrect has an offset, as the groupbox frame is not part of it.

Therefore the groupbox repaints the wrong area.

Not sure if rect needs to be fixed before, or within InvalidateRect

Zeljan Rikalo

2014-02-16 08:38

developer   ~0073074

hm...maybe TGtk2GroupBox returns wrong client rect (with offset). I'll check that

Zeljan Rikalo

2014-02-16 10:25

developer   ~0073080

Please test and close if ok.
Will be added to the merge list for RC3

Issue History

Date Modified Username Field Change
2014-01-21 08:52 Timl New Issue
2014-01-21 08:52 Timl File Added: invisible_label.tar.gz
2014-01-21 15:52 Martin Friebe LazTarget => 1.2
2014-01-21 15:52 Martin Friebe Target Version => 1.2.0
2014-01-21 15:52 Martin Friebe Steps to Reproduce Updated View Revisions
2014-01-21 17:26 Martin Friebe Note Added: 0072593
2014-01-21 17:26 Martin Friebe Summary Regression in TLabel in Gtk2 => Regression in TGroupBox in Gtk2
2014-02-16 08:38 Zeljan Rikalo Note Added: 0073074
2014-02-16 10:12 Zeljan Rikalo Assigned To => Zeljan Rikalo
2014-02-16 10:12 Zeljan Rikalo Status new => assigned
2014-02-16 10:25 Zeljan Rikalo Fixed in Revision => 44093
2014-02-16 10:25 Zeljan Rikalo Note Added: 0073080
2014-02-16 10:25 Zeljan Rikalo Status assigned => resolved
2014-02-16 10:25 Zeljan Rikalo Resolution open => fixed