Author Topic: _ScreenMove _Middle  (Read 3342 times)

0 Members and 1 Guest are viewing this topic.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
_ScreenMove _Middle
« on: November 05, 2021, 11:22:35 am »
Is _Middle for _ScreenMove based on the assumption that the Tool bar runs at the top edge?

I just tried _ScreenMove _Middle for a 1024 X 740 screen and _Middle leaves room above the title bar and has the screen bottom below the bottom edge of my computer screen. Limit of Height for me is 740 with title bar.

If I do
Code: QB64: [Select]
  1. _ScreenMove somethingX, 0

will that aggravate everyone who has Tool bars at the top of their screen? Or does 0 go below Tool Bar?

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: _ScreenMove _Middle
« Reply #1 on: November 05, 2021, 11:35:19 am »
QB64's ScreenMove counts from the top left of your titlebar for both X and Y coordinates.  It doesn't use your screen's actual position for centering.

To do that, go here: https://www.qb64.org/forum/index.php?topic=3659.msg130063#msg130063
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: _ScreenMove _Middle
« Reply #2 on: November 05, 2021, 12:00:57 pm »
Quote
If I do
Code: QB64: [Select]
_ScreenMove somethingX, 0

will that aggravate everyone who has Tool bars at the top of their screen? Or does 0 go below Tool Bar?

This answer is yes, because I unlocked my tool bar (which Windows calls Taskbar, so sorry I got the wrong term for it) and tried. The QB64 screen goes underneath.

Update: you can't even grab the title bar to move QB64 screen (with mouse), that has to be aggravating.
« Last Edit: November 05, 2021, 12:16:15 pm by bplus »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: _ScreenMove _Middle
« Reply #3 on: November 05, 2021, 12:14:53 pm »
OK I am just going to go with this for max screen height of 1024 X 700.

Code: QB64: [Select]
  1. _ScreenMove 150, 40

1024 and below has some secret speed to it for graphics, use wider if text application.
700 assumes 40 pixel Taskbar Height and leaves me just enough I can seen the bottom edge of my QB64 screen.

PLUS when I don't use the (NOT) _Middle, I don't need a dang _delay .25!


Honestly would hate to add a sub just to get the QB64 screen fully visible for everyone who might use my code.