Author Topic: Tips to ensure _TITLE works?  (Read 1752 times)

0 Members and 1 Guest are viewing this topic.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Tips to ensure _TITLE works?
« on: September 10, 2018, 11:33:09 am »
I always had to add a small delay when using _TITLE to make sure it will work, and a delay works, but recently found out that these things will make _TITLE work when called without delay. 

#1) Loading an icon first makes _TITLE work instantly.
#2) Calling _SCREENMOVE _SCREENX, _SCREENY before calling _TITLE makes _TITLE work instantly.

Has anyone found anymore ways that can eliminate the delay needed with _TITLE? 

- Dav
« Last Edit: September 10, 2018, 04:09:32 pm by Dav »

FellippeHeitor

  • Guest
Re: Tips to ensure _TITLE works?
« Reply #1 on: September 10, 2018, 11:37:34 am »
You can wait until the screen exists. It is a delay, but one that only lasts as much as needed, no less, no more:

Code: QB64: [Select]

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Tips to ensure _TITLE works?
« Reply #2 on: September 10, 2018, 11:37:41 am »
#1) Loading an icon first makes _TITLE work instantly.

Clippy discovered that one back in the SDL days and it's the method I've used since. I didn't realize there were other ways to get it to work.
In order to understand recursion, one must first understand recursion.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Tips to ensure _TITLE works?
« Reply #3 on: September 10, 2018, 04:09:06 pm »