Author Topic: ALWAYSONTOP(TRUE)  (Read 3700 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
ALWAYSONTOP(TRUE)
« on: 2008-Aug-09 »
ALWAYSONTOP(TRUE)
Updated August 10, 2008
Download ZIP: Download Link
File is attached to this topic under the screenshot.

Function Attributes:
1. Window stays on top of all other windows. Forced Z
2. Window can still minimize and close with window titlebar. Forced To Run Always (overrides pause)
3. The function is BOOLEAN, true/false, Turns it ON or OFF
4. Function Call is placed in main loop. Ensures Forcing Z and Run.

Usage:
1. In files tab on right side of compiler "Select Sources"
2. then right-click to "ADD"
3. Select file: "ALWAYSONTOP.gbal"
4. Put ALWAYSONTOP(TRUE) into the main loop:

Code: GLBasic [Select]
ALWAYSONTOP(TRUE)

EXAMPLE:
Code: GLBasic [Select]
// --------------------------------- //
// Project: blah blah blah
// Start: Friday, August 9, 2008
// IDE Version Version 5
//
//variables:
   LOCAL text$="Hello World!"

   //mainloop
   WHILE TRUE
        Print text$,100,100
        ALWAYSONTOP(TRUE)   //<-----------BOOLEAN
        SHOWSCREEN
  WEND
END


[attachment deleted by admin]
« Last Edit: 2008-Aug-10 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5020
  • O Rly?
    • View Profile
Re: ALWAYSONTOP(TRUE)
« Reply #1 on: 2008-Aug-09 »
Yeay,,, first GBAL :D  :good:
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard