Forum > Designer
Unable to move form out of visible screen area
Thaddy:
It has nothing to do with the graphics drivers. To - almost - make it disappear set left/top to screenwidth-1/screenhight-1 which leaves one pixel to drag the window into view again.
jcmontherock:
... or
--- 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";}};} ---Form1.visible := False;
Aruna:
--- Quote from: jcmontherock on August 04, 2024, 03:55:31 pm ---... or
--- 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";}};} ---Form1.visible := False;
--- End quote ---
Hi @jcmontherock thank you that will hide the form yes but I want to slide in the form from the left to the visible screen area. To do this I have to first position the form fully 'away' from the visible screen area and so far this has not been possible.
Aruna:
--- 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.
--- End quote ---
Correct that is the same behaviour I have.
--- Quote from: dbannon on August 04, 2024, 01:45:30 pm ---But if you drag the form so Left is negative, further negative is possible ! But not so far as the form becomes invisible. Wow.
--- End quote ---
Yes same behaviour as mine.
--- Quote from: dbannon on August 04, 2024, 01:45:30 pm ---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).
--- End quote ---
Davo, keep clicking the button and at one point it will stack up against the edge of the screen and refuse to move further. Test it please.
--- Quote from: dbannon on August 04, 2024, 01:45:30 pm ---But if you drag the form so Left is negative, further negative is possible ! But not so far as the form becomes invisible. Wow.
Applies to both gtk2 and qt5. Applies to any form, not just the main form.
--- End quote ---
I have only tested in gtk but I would think it would have the same behaviour in other popular gui libraries.
--- Quote from: dbannon on August 04, 2024, 01:45:30 pm ---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 ---
So far from what I have seen in the code yes this is intended behaviour. I do not think it is a window manager rule. Ensuring the user can see the User Interface is always good. But.. What about users who may actually want to have a form positioned away from the visible screen? Then this becomes restrictive. This is just a personal thought, if someone wishes to move a form away from the visible screen then they should be allowed to do that?
--- Quote from: dbannon on August 04, 2024, 01:45:30 pm ---Hmm, Aruna, why do you want to move form to left anyway ?
--- End quote ---
Remember Testall days? I am slowly compiling a set of demos and in one demo I want to slide the form into the visible area from the left (currently impossible to do ) I will attach a very small sample for you to review soon. I have attached a screenshot as a teaser ;)
alpine:
--- Quote ---I have attached a screenshot as a teaser ;)
--- End quote ---
I very much like it!
Navigation
[0] Message Index
[#] Next page
[*] Previous page