Forum > Designer

Unable to move form out of visible screen area

(1/3) > >>

Aruna:
I am running Linux debian 6.4.8-usb #8 SMP PREEMPT_DYNAMIC Fri Feb  9 17:21:43 EST 2024 x86_64 GNU/Linux and Lazarus 3.4 (rev Unknown) FPC 3.2.0 x86_64-linux-gtk2.

I have a form. I set it's Left property to zero and it gets aligned to the left border of the IDE which is what I wanted. Now if I try to get the form to move further left by giving the Left property a negative value like -100 it is instantly removed and zeroed. The form does not move any further left than x=0px.

When I try to move the form through code it works up to the screen edge then goes no further. 

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TForm1.Button1Click(Sender: TObject);begin  Left := Left -100;end; 
I have attached the source. So how does one move the form beyond the visible screen area?

dbannon:

--- Quote from: Aruna on August 04, 2024, 01:50:59 am ---I am running Linux debian 6.4.8-usb

--- End quote ---

I am guessing that is the kernel version rather than the Debian version ?

I use Debian 12 (bookworm) and routinly test my app on Debian 13 (trixie) and don't see the problem you mention.  I suspect it might be a Desktop thing ?  What desktop are you using ?  (I use Mate).

Davo

Aruna:

--- Quote from: dbannon on August 04, 2024, 02:25:36 am ---
--- Quote from: Aruna on August 04, 2024, 01:50:59 am ---I am running Linux debian 6.4.8-usb
--- End quote ---

I am guessing that is the kernel version rather than the Debian version ?
--- End quote ---

Hey Davo long time, must be two years or so I think? My apologies. Yes that is a custom kernel I built while testing a arduino-nano and usb issue a while back. Below is the Debian Version:


--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~/lazarus3/lazarus$ lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription:    Debian GNU/Linux 11 (bullseye)Release:        11Codename:       bullseye

--- Quote from: dbannon on August 04, 2024, 02:25:36 am ---I use Debian 12 (bookworm) and routinly test my app on Debian 13 (trixie) and don't see the problem you mention.  I suspect it might be a Desktop thing ?  What desktop are you using ?  (I use Mate).
Davo
--- End quote ---

I use Gnome Classic.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~/lazarus3/lazarus$ echo $XDG_CURRENT_DESKTOPGNOME-Classic:GNOME
And you can have a look here it shows you the problem I am experiencing.

dbannon:
OK, thats unexpected !  I can confirm what you say. If left is positive, changing it to some negative number sets it to zero. 

But if you drag the form so Left is negative, further negative is possible ! But not so far as the form becomes invisible. Wow.

(make the form wider, move the button to right hand side, grab the title bar at run time and drag it left, then press your button).

Applies to both gtk2 and qt5. Applies to any form, not just the main form. 

I have to assume this is intended behaviour, maybe even a Window Manager rule ?  But I am surprised I have not noticed it before, I guess I concentrate on ensuring user can see the form rather than the reverse.

Setting a negative Left before Show does not help either.

Beats me !

Hmm, Aruna, why do you want to move form to left anyway ?



Davo

VisualLab:

--- Quote from: dbannon on August 04, 2024, 01:45:30 pm ---OK, thats unexpected !  I can confirm what you say. If left is positive, changing it to some negative number sets it to zero. 

But if you drag the form so Left is negative, further negative is possible ! But not so far as the form becomes invisible. Wow.

(make the form wider, move the button to right hand side, grab the title bar at run time and drag it left, then press your button).

Applies to both gtk2 and qt5. Applies to any form, not just the main form. 

I have to assume this is intended behaviour, maybe even a Window Manager rule ?  But I am surprised I have not noticed it before, I guess I concentrate on ensuring user can see the form rather than the reverse.

--- End quote ---

Is it possible that it's something in the display server? I wonder how the test program behaves in Linux with graphics servers: X.org (gtk2/qt5) and Wayland (gtk2/qt5)?

Navigation

[0] Message Index

[#] Next page

Go to full version