English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 21 May 2023, 13:33   #1
AmiNju
Registered User
 
Join Date: Mar 2020
Location: Duesseldorf / Germany
Posts: 32
Prevent Screen to move

Hello,

when I open a screen (Screen 0, 3) I can move the screen up and down in the title bar at the top with mouse button down. Is it possible to prevent this? If yes how?

Best regards
Frank
AmiNju is offline  
Old 21 May 2023, 21:32   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,346
Well, since OS 3.0 IIRC there is a tag that can be used to turn off screen dragging on a particular screen. However the Blitz Screen command doesn't give you access to those tags, and the tag wouldn't do anything on earlier OS versions, so you could still drag it on Kickstart 2 for example. To use the tag, you'll need to do it the "hard" way using the standard OS calls. If you're using AmiBlitz 3, have a look at the screen.include code, which contains a routine to do this. You can probably adapt it to include the relevant tags for turning off screen dragging.

A far simpler option would be to open a borderless backdrop window and do your drawing to that instead. Of course this brings its own restrictions because Blitz's direct-to-window drawing commands are limited and slow, but it will effectively cover up the title bar, preventing the screen from being dragged without using a hotkey. Or, for a variation on that theme, simply open a fixed-position window that covers the bar completely, draw your own title bar in that window and draw to the rest of the screen as normal. Using this method would also let you leave the depth gadget at the right untouched.
Daedalus is online now  
Old 22 May 2023, 12:27   #3
AmiNju
Registered User
 
Join Date: Mar 2020
Location: Duesseldorf / Germany
Posts: 32
I'm not sitting in front of the computer right now, but is it possible to open screens where the title bar is pushed out over the top, so y < 0? I will test that tonight.

I have seen that NScreen offers these tags in the initialization. But I assume that they only work under Kicksstart 3, as you have already written.

Thank you Daedalus for your anwser!

*edit*
"Or, for a variation on that theme, simply open a fixed-position window that covers the bar completely, draw your own title bar in that window and draw to the rest of the screen as normal. Using this method would also let you leave the depth gadget at the right untouched." - this will I test tonight. Thank you!

Last edited by AmiNju; 22 May 2023 at 12:43.
AmiNju is offline  
Old 23 May 2023, 01:01   #4
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
+1 I have not much to add to Daedalus' answer. This behavior is built deep into the OS, and you can only countermand it by using the screen feature added, take over the OS completely, or do it by subversion (e.g. cover it up with something to absorb the click/drag.)
Photon is offline  
Old 23 May 2023, 20:27   #5
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 863
Is it possible to limit the mouse from getting to a point at the top to drag the screen? That would rule out any menus though.
Coagulus is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent user from moving my Screen Photon Coders. System 10 08 February 2023 20:46
fast mouse move loose offset values in P96 full HD screen bernd roesch support.WinUAE 2 24 April 2018 13:20
Move Windows Out Screen AMIGASYSTEM support.Apps 13 08 April 2017 01:27
Move it Move it... (68000) Gilloo Coders. Asm / Hardware 19 04 December 2011 17:36
Move on screen display Leandro Jardim request.UAE Wishlist 0 13 November 2011 02:49

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:33.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10436 seconds with 13 queries