View Issue Details

IDProjectCategoryView StatusLast Update
0029445LazarusLCLpublic2016-01-19 19:05
ReporterAlexander KoblovAssigned ToOndrej Pokorny 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct Build 
Target Version1.6Fixed in Version1.7 (SVN) 
Summary0029445: Empty window after minimize and restore
DescriptionI check latest Lazarus 1.6 from fixes branch. I found that when I minimize window in my program and restore it then window is empty, only main menu is visible. I found that this bug was introduced in revision 51115 and was merged in 51152. I can reproduce it only on my big project. I was not able to create a small test case. Tested under Windows 7, 10.
TagsNo tags attached.
Fixed in Revision51321,51333,51334
LazTarget1.6
Widgetset
Attached Files

Relationships

related to 0029310 closedOndrej Pokorny When resizing a form, wrong ClientHeight is retrieved (increased by MainMenu height) 

Activities

Ondrej Pokorny

2016-01-18 22:04

developer   ~0089049

>> I can reproduce it only on my big project. I was not able to create a small test case.

Is it possible to modify your big project so that it works with r51115?

Do you use Resizing() in the form in question?

Alexander Koblov

2016-01-18 22:32

reporter  

Bug.zip (129,659 bytes)

Alexander Koblov

2016-01-18 22:32

reporter   ~0089051

Hmmm... I was able to create a test case. See attached archive.

Ondrej Pokorny

2016-01-18 22:39

developer   ~0089052

>> Hmmm... I was able to create a test case. See attached archive.

Confirmed. Thanks.

Ondrej Pokorny

2016-01-18 23:30

developer   ~0089054

Please test.

Ondrej Pokorny

2016-01-18 23:36

developer   ~0089055

Note for myself: Can also be fixed with

Index: customform.inc
===================================================================
--- customform.inc (revision 51321)
+++ customform.inc (working copy)
@@ -2260,8 +2260,6 @@
 ------------------------------------------------------------------------------}
 function TCustomForm.AutoSizeDelayedHandle: Boolean;
 begin
- if WindowState=wsMinimized then
- exit(true);
   if (Parent<>nil) or (ParentWindow<>0) then
     // this form is inlined / embedded it works like a normal TWinControl
     Result:=inherited AutoSizeDelayedHandle

Alexander Koblov

2016-01-19 19:05

reporter   ~0089082

OK, works fine now.

Issue History

Date Modified Username Field Change
2016-01-18 21:02 Alexander Koblov New Issue
2016-01-18 22:01 Ondrej Pokorny Assigned To => Ondrej Pokorny
2016-01-18 22:01 Ondrej Pokorny Status new => assigned
2016-01-18 22:04 Ondrej Pokorny Note Added: 0089049
2016-01-18 22:04 Ondrej Pokorny Relationship added related to 0029308
2016-01-18 22:15 Ondrej Pokorny Relationship added related to 0029310
2016-01-18 22:17 Ondrej Pokorny Relationship deleted related to 0029308
2016-01-18 22:32 Alexander Koblov File Added: Bug.zip
2016-01-18 22:32 Alexander Koblov Note Added: 0089051
2016-01-18 22:39 Ondrej Pokorny Note Added: 0089052
2016-01-18 23:30 Ondrej Pokorny Fixed in Revision => 51321
2016-01-18 23:30 Ondrej Pokorny LazTarget => -
2016-01-18 23:30 Ondrej Pokorny Status assigned => resolved
2016-01-18 23:30 Ondrej Pokorny Resolution open => fixed
2016-01-18 23:30 Ondrej Pokorny Note Added: 0089054
2016-01-18 23:36 Ondrej Pokorny Note Added: 0089055
2016-01-19 00:27 Ondrej Pokorny Fixed in Revision 51321 => 51321,51333,51334
2016-01-19 00:46 Ondrej Pokorny LazTarget - => 1.6
2016-01-19 00:46 Ondrej Pokorny Fixed in Version => 1.7 (SVN)
2016-01-19 00:46 Ondrej Pokorny Target Version => 1.6
2016-01-19 19:05 Alexander Koblov Note Added: 0089082
2016-01-19 19:05 Alexander Koblov Status resolved => closed