TBH = TaskbarHeight: TBW = TaskbarWidth
TH = TitleBarHeight: BW = BorderWidth
If TBH
= DH
Then TBH
= 0 'Users taskbar is configured vertical, not hortizonal.
Print "This screen is the size of your desktop, but it has some inherent issues.";
_Width, _Height Print "Hit the <SPACE BAR> and watch as we position it in different manners:" Print "To start with, this is a _SCREENMOVE 0,0 call. It places the TITLEBAR's top left corner at position 0,0." Print "If you notice, the bottom of the screen is now hidden as the titlebar has shifted us down below the max resolution our screen will display." ScreenMove 0, 0
Print "Now, this is a Steve Approved(tm) ScreenMove method to move the screen itself to position 0,0." Print "Now, as you can tell (if your taskbar is set to hide itself), the program window now covers the screen perfectly." Print "The only problem with this method is that we are now hiding the title bar over the top of the screen!"
If taskbar_top
> 0 Then ScreenX
= 0 Else ScreenX
= TBH
If taskbar_left
> 0 Then Screeny
= 0 Else Screeny
= TBW
ScreenMove ScreenX, Screeny
Print "To fix these issues, we use the functions here to figure out EXACTLY what size our screen needs to be." Print "Title Bar Height = "; TH
Print "Screen Border ="; BW;
"on each side." Print "Task Bar Height ="; TBH
Print "Task Bar Width ="; TBW
Print "Task Bar Top = "; taskbar_top
Print "Task Bar Left = "; taskbar_left
Print "Task Bar Bottom = "; taskbar_bottom
Print "Task Bar Right = "; taskbar_right
Print "See how it fits your visible screen perfectly?" Print "Note: If you have transparent borders, or if your theme has them set to opaque, it may appear to be a gap around your screen. That transparent gap IS the screen border. Set it a solid color and you can see it." Print "At this point, you should have your title bar up top. You screen shouldn't cover, or be covered, by the task bar." Print "Everything should be visible and accessable for you." Print "To my way of thinking, THIS is the maximum resolution that your screen should run in with a program. ;)"
_ScreenMove x
- BorderWidth
, y
- BorderWidth
- TitleBarHeight
TaskbarHeight = taskbar_height&
TaskbarHeight = 0 'no function to get the value for Linux/Mac, so return 0 instead of an error
TaskbarWidth = taskbar_width&
TaskbarWidth = 0 'no function to get the value for Linux/Mac, so return 0 instead of an error
TitleBarHeight = glutGet(507)
BorderWidth = glutGet(506)