View Issue Details

IDProjectCategoryView StatusLast Update
0017227LazarusIDEpublic2016-11-13 19:33
ReporterStephano Assigned To 
Status newResolutionopen 
Product Version0.9.29 (SVN) 
Summary0017227: Form cannot be set even partially outside screen
DescriptionCreate a new project.
Move the form so that it is partially outside the screen.
Save the project.
Open the project.
The form is fully visible!

Ubuntu 10.04 / GTK 2.20 / Visual effects set to normal
Lazarus 0.9.29 r27159M FPC 2.4.0 i386-linux-gtk 2 (beta)
TagsNo tags attached.
Fixed in Revision
WidgetsetGTK 2
Attached Files


related to 0014854 acknowledged Resolution and size of forms 


Felipe Monteiro de Carvalho

2010-08-22 09:18

developer   ~0040380

What is the point of putting the form outside of the screen? In general you should either set the form position to Screen center or position it in a position relative to another existing window. I would set this as a "won't fix"


2010-08-22 11:04

developer   ~0040382

Then what is the point of allowing negative coordinates? It is trivial to disallow negative coordinates, yet it is allowed.

I don't need that behaviour, but have noticed it nevertheless. I find it inconsistent.

Any idea how Delphi behaves in this case?

Bart Broersma

2014-05-01 17:51

developer   ~0074733

ATM I can happily set the form partially outside the current screen and Lazarus restores it as I left it.
Tested on Windows.
Is this issue still active?


2014-05-20 09:42

developer   ~0075126

Just tested again under Ubuntu 11.04 with Lazarus SVN. Issue still persists.

Zeljan Rikalo

2014-05-20 10:25

developer   ~0075131

I understand why it's good to move form outside of screen coordinates, but restore it at that coordinates ? why ? You can check SetBounds and ShowHide in Gtk2WSControls & Gtk2WSForms, find solution and provide patch.

Bart Broersma

2016-11-13 19:23

developer   ~0095845

Last edited: 2016-11-13 19:33

View 4 revisions

Just tested trunk (1.7) on Linux/GTK2.
Weh I move a form partially outside the screen (right side), then at some point the form is moved so that it's top-right corner is at top-right of the screen.
If I repeate this a couple of time, then all of the sudden the form's height is changed to be screen.height, and right side of the form is at right side of the screen.
Maximize/restore then restores to normal size.

This is just weird.

Edit: the same now also happens on Windows.
(Lazarus 1.7 r53303 FPC 3.0.0 i386-win32-win32/win64: 32-bit Lazarus in Win7-64)

On Windows this seems to be standard behaviour of a window.
At least Notepad behaves exactly the same.

Issue History

Date Modified Username Field Change
2010-08-21 11:24 Stephano New Issue
2010-08-21 11:24 Stephano Widgetset => GTK 2
2010-08-22 09:18 Felipe Monteiro de Carvalho Note Added: 0040380
2010-08-22 11:04 Stephano Note Added: 0040382
2010-10-29 09:37 Vincent Snijders LazTarget => -
2010-10-29 09:37 Vincent Snijders Status new => acknowledged
2014-05-01 17:51 Bart Broersma Note Added: 0074733
2014-05-01 17:51 Bart Broersma Status acknowledged => feedback
2014-05-20 09:42 Stephano Note Added: 0075126
2014-05-20 09:42 Stephano Status feedback => new
2014-05-20 10:25 Zeljan Rikalo Note Added: 0075131
2014-09-10 12:45 Juha Manninen Relationship added related to 0014854
2016-11-13 19:23 Bart Broersma Note Added: 0095845
2016-11-13 19:23 Bart Broersma Note Edited: 0095845 View Revisions
2016-11-13 19:26 Bart Broersma Note Edited: 0095845 View Revisions
2016-11-13 19:33 Bart Broersma Note Edited: 0095845 View Revisions