GLBasic forum

Codesnippets => Userlibs [ *.gbal] => Topic started by: Hemlos on 2008-Aug-09

Title: ALWAYSONTOP(TRUE)
Post by: Hemlos on 2008-Aug-09
ALWAYSONTOP(TRUE)
Updated August 10, 2008
Download ZIP: Download Link (http://www.glbasic.com/forum/index.php?action=dlattach;topic=2207.0;attach=209)
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]
Title: Re: ALWAYSONTOP(TRUE)
Post by: Schranz0r on 2008-Aug-09
Yeay,,, first GBAL :D  :good: