Advertisements
#include "hmg.ch"
PROCEDURE Main() nWindWidth := 500 nWindHeight := 400 nUnMWinCol := ( GetDesktopWidth() - nWindWidth ) / 2 nUnMWinRow := ( GetDesktopHeight() - nWindHeight ) / 2 DEFINE WINDOW frmUnTouchable ; AT 0,0 ; WIDTH nWindWidth ; HEIGHT nWindHeight ; TITle "UnTouchable Window" ; MAIN ON KEY ESCAPE ACTION thisWindow.Release DEFINE TIMER Timer_1 INTERVAL 1000 ACTION DontTouchMyWindow() END WINDOW frmUnTouchable.CENTER ACTIVATE WINDOW frmUnTouchable RETURN // UTW.Main() *.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._ PROCEDURE DontTouchMyWindow() thisWindow.Row := nUnMWinRow thisWindow.Col := nUnMWinCol thisWindow.HEIGHT := nWindHeight thisWindow.WIDTH := nWindWidth RETURN // DontTouchMyWindow() *.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._
Advertisements