'$Dynamic
If DW
> 1920 Then 'I'm going to assume it's a super highres screen FontSize = 40
FontSize = 20
Font
= _LoadFont("courbd.ttf", FontSize
, "monospace")
Print "This is just a demo of a resizable screen and how we'd adjust our text to give us more words per row with a wide screen and fewer words with a narrower screen. This will also change font size automatically to a much larger font, if your screen resolution is greater than 1920 pizels wide, and still look proper for you. This is just a demo and really does nothing beyond this point..." Print "Note, there is *NO* word-wrap built into this demo."
If Delay#
= 0 Then Delay#
= ExtendedTimer
+ 10.0 '10 seconds to view and resize my pretty little title screen If Delay#
< ExtendedTimer
Then Room = 1
Text1$ = "Resizing Screen Demo"
Text2$ = "By. SMcNeill"
Text3$ = "2021"
CenterText Text1$, Top
Sub CenterText
(text$
, Ypos
)
DisplayScreen = tempscreen
l1
= InStr(l
+ 1, d$
, "-") Select Case i
'Add the number of days for each previous month passed Case 1: d
= d
'January doestn't have any carry over days. Case 2, 4, 6, 8, 9, 11: d
= d
+ 31 Case 5, 7, 10, 12: d
= d
+ 30 d = d + 365
If m
> 2 Then d
= d
+ 1 'add an extra day for leap year every 4 years, starting in 1970 d = d - 1 'for year 2000
s~&& = d * 24 * 60 * 60 'Seconds are days * 24 hours * 60 minutes * 60 seconds
ExtendedTimer##
= (s~&&
+ Timer)