View Issue Details

IDProjectCategoryView StatusLast Update
0016349LazarusWidgetsetpublic2010-11-18 15:05
ReporterJonas Maebe Assigned ToDmitry Boyarintsev  
Status assignedResolutionopen 
PlatformPowerPCOSMac OS X 
Product Version0.9.29 (SVN) 
Summary0016349: [Carbon] Autosizing a groupbox containing an edit with a custom font does not work correctly
DescriptionThe project in attachment is identical to the one attached to bug 0016348.

On carbon, there is no endless loop like on Qt when starting the test program, but
a) when the program is started, the custom font setting of the groupboxes is ignored for all edit controls (the edit boxes are too high) -- see autosize4-carbon1.png in attachment
b) if you resize the window, then the edit boxes in the 4 bottom panels on the right are resized to the correct size, but the rest isn't -- see autosize4-carbon2.png in attachment

The correct behaviour would be that all tedit fields would have the correct size as soon as the program is started, and that resizing the window doesn't change anything.
TagsNo tags attached.
Fixed in Revision
Attached Files


related to 0016348 closedMattias Gaertner [Qt] Autosizing a groupbox containing a TEdit with a custom font results in an endless loop 
parent of 0017977 closedMattias Gaertner Empty autosized groupbox causes endless loop in designer 
related to 0017947 closedMattias Gaertner Autosized container size not always updated when changing borderspacing of its child components 


2010-04-26 15:19 (131,489 bytes)

2010-04-26 15:20


autosize4-carbon1.png (36,741 bytes)   
autosize4-carbon1.png (36,741 bytes)   

2010-04-26 15:20


autosize4-carbon2.png (36,412 bytes)   
autosize4-carbon2.png (36,412 bytes)   

Jonas Maebe

2010-04-26 15:28

reporter   ~0037028

BTW: the screenshots in attachment are with an LCL with the patches from 0016337 applied, so the regular results may be slightly different (because the test project is very similar to the project attached to 0016337, so the groupboxes and internal panels may also have a wrong size with an unpatched lcl).

Dmitry Boyarintsev

2010-04-26 22:00

developer   ~0037038

Should recompilation with -dOldAutoSize help?

2010-11-18 14:37


carbon-r28293.png (36,624 bytes)   
carbon-r28293.png (36,624 bytes)   

Jonas Maebe

2010-11-18 14:39

reporter   ~0043183

The behaviour has become much worse, the result is now as in carbon-r28293.png in attachment.

Note that you have to edit Unit1.lfm in a text editor, set autosize to false for the groupboxes, and then modify the code to set autosize to true to avoid a Lazarus endless loop on opening the project due to 0017977

Issue History

Date Modified Username Field Change
2010-04-26 15:19 Jonas Maebe New Issue
2010-04-26 15:19 Jonas Maebe File Added:
2010-04-26 15:19 Jonas Maebe Widgetset => Carbon
2010-04-26 15:20 Jonas Maebe File Added: autosize4-carbon1.png
2010-04-26 15:20 Jonas Maebe File Added: autosize4-carbon2.png
2010-04-26 15:28 Jonas Maebe Note Added: 0037028
2010-04-26 16:07 Zeljan Rikalo Relationship added related to 0016348
2010-04-26 21:45 Dmitry Boyarintsev Status new => assigned
2010-04-26 21:45 Dmitry Boyarintsev Assigned To => Dmitry Boyarintsev
2010-04-26 22:00 Dmitry Boyarintsev Note Added: 0037038
2010-11-18 14:37 Jonas Maebe File Added: carbon-r28293.png
2010-11-18 14:39 Jonas Maebe Note Added: 0043183
2010-11-18 15:05 Vincent Snijders Relationship added parent of 0017977
2010-11-25 11:42 Vincent Snijders Relationship added related to 0017947