QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Dav 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
-
You can wait until the screen exists. It is a delay, but one that only lasts as much as needed, no less, no more:
-
#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.
-
That works good too. Thanks.
-Dav