General Terminal

GtSetAlwaysOnTop

Change whether the window stays above other windows

Syntax

Signature
void GtSetAlwaysOnTop( xBool on );

Arguments

on enables the setting with T or disables it with F.

Return value

No return value.

Description

Controls whether the desktop manager keeps the terminal window above ordinary windows. Check the resulting state with GtIsAlwaysOnTop().

Example

gtsetalwaysontop.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   xBool previous = GtIsAlwaysOnTop();

   GtSetAlwaysOnTop( T );
   printf( "Always On Top state: %s\n", GtIsAlwaysOnTop() ? "on" : "off" );
   Inkey( 2, NIL );
   GtSetAlwaysOnTop( previous );

   return 0;
}

See also