'TITLEBARTICKER.BAS
'Example of scrolling text in the title bar.
'You can use it as a news ticker, stock data, or other info.
'by Dav, JULY/2020
 
 
'You could grab your headlines here from a website instead.
'I just used some random headlines from actual newspapers below.....really...
 
'you could also add a Winows API to allow always stay on top of other windows.
 
txt$ = "...BREAKING NEWS....DOCS SAY BREATHING OXYGEN LINKED TO STAYING ALIVE.........."
txt$ = txt$ + "....NEW POLL SAYS MAJORITY OF AMERICANS (4 OUT OF 10) HATE MATH..........."
txt$ = txt$ + "....STUDY SHOWS TEEN PREGNANCY DROPS OFF SIGNIFICANTLY AFTER AGE 25......."
txt$ = txt$ + "....NOW BREAKING....WORLD BANK SAYS THE POOR NEED MORE MONEY.............."
txt$ = txt$ + "....MISSIPPI'S LITERACY PROGRAM STARTING TO SHOW IMPROVEMENT.............."
txt$ = txt$ + "....BREAKING: NORTHFIELD SAYS THEY PLAN TO PLAN A STRATEGIC PLAN.........."
txt$ = txt$ + "....SCIENTISTS SAY GREENLAND METEORITE MAY BE FROM OUTER SPACE............"
txt$ = txt$ + "....2 YEAR STUDY SUGGESTS MOST EARTHQUAKE DAMAGE CAUSED BY SHAKING........"
txt$ = txt$ + "....WA SCIENTISTS DECIDE TO KILL DUCKS TO SEE WHY THEY ARE DYING.........."
txt$ = txt$ + "....PRISONER SERVING 2000 YEAR SENTANCE COULD FACE MORE TIME.............."
 
 
 
chars = 60 'number of characters to show in title bar...
 
starttime 
= TIMER 'start a timer... 
 
 
 
 
 
 
'===========
TitleScroll: 'Ahhh! A GOSUB routine!!  RUN!!!
'===========
c 
= c 
+ 1: 
IF c 
>= txtlen 
THEN c 
= 1