Recent

Author Topic: Moving Form out of visible screen area fails  (Read 1639 times)

Aruna

  • Sr. Member
  • ****
  • Posts: 458
Re: Moving Form out of visible screen area fails
« Reply #15 on: August 05, 2024, 01:41:12 am »
Also in Manjaro Linux with Laz main/fpc 3.2.2/gtk2 it does not. This is for undocked IDE. Is your IDE docked?
Yes mine is docked using AnchorDocking1.0 and AnchorDockingDsgn1.0
Debian GNU/Linux 11 (bullseye)
https://pascal.chat/

ASerge

  • Hero Member
  • *****
  • Posts: 2324
Re: Moving Form out of visible screen area fails
« Reply #16 on: August 05, 2024, 03:28:20 am »
Windows 7. Move it completely away from the visible area.
Moving the form using the mouse away from the visible area works. I was trying to move it programmatically, and that only moves to visible screen area edges.
I used your code. Added a new form to the new application and added the OnCreate event. After launching, the form disappeared from the screen. To check, I pressed Alt + space, selected the move and moved it back to the visible area with the mouse.

Aruna

  • Sr. Member
  • ****
  • Posts: 458
Re: Moving Form out of visible screen area fails
« Reply #17 on: August 05, 2024, 03:40:24 am »
I used your code. Added a new form to the new application and added the OnCreate event. After launching, the form disappeared from the screen. To check, I pressed Alt + space, selected the move and moved it back to the visible area with the mouse.
Yes @ASerge it seems to work on Windows. Have you tried it on a Linux distro? Many thanks for testing.
Debian GNU/Linux 11 (bullseye)
https://pascal.chat/

wp

  • Hero Member
  • *****
  • Posts: 12368
Re: Moving Form out of visible screen area fails
« Reply #18 on: August 05, 2024, 06:35:38 am »
Also in Manjaro Linux with Laz main/fpc 3.2.2/gtk2 it does not. This is for undocked IDE. Is your IDE docked?
Yes mine is docked using AnchorDocking1.0 and AnchorDockingDsgn1.0
This indicates that much of this issue is due to a bug in Anchordocking rather than in the LCL.

VisualLab

  • Sr. Member
  • ****
  • Posts: 499
Re: Moving Form out of visible screen area fails
« Reply #19 on: August 09, 2024, 12:56:27 am »
Also in Manjaro Linux with Laz main/fpc 3.2.2/gtk2 it does not. This is for undocked IDE. Is your IDE docked?
Yes mine is docked using AnchorDocking1.0 and AnchorDockingDsgn1.0
This indicates that much of this issue is due to a bug in Anchordocking rather than in the LCL.

I have been using the AnchorDocking, AnchorDockingDsgn and DockedFormEditor packages all the time since at least 3 versions of Lazarus. I install them every time after installing Lazarus. The tests I described in messages 5 and 9 are done in Lazarus with the docking packages installed and docked windows.

 

TinyPortal © 2005-2018