DISABLE ALT+ F4

DISABLE ALT+ F4

Postby Silvio.Falconi » Sun Jun 07, 2020 11:08 am

I have a dialog for add an Invoice
I disabled Esc
I disable button X

but the user is able also to close the dialog with alt+f4


how I can reolve ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: DISABLE ALT+ F4

Postby cnavarro » Sun Jun 07, 2020 11:35 am

Code: Select all  Expand view  RUN

Function TestInvoice()

Local oDlg,oFont
local nOffx   := 20 //-250
local nOffy   := 30 //-300
local lSw     := .F.

 DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
 DEFINE DIALOG oDlg SIZE 878, 570 PIXEL TRUEPIXEL RESIZABLE FONT oFont ;
   TITLE "Services"


 @ 10, 100 button "Exit" SIZE 50, 24 PIXEL ACTION ( lSw := .T., oDlg:End() )

 ACTIVATE DIALOG oDlg CENTERED VALID lSw

   RELEASE FONT oFont

return nil

 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Enrico Maria Giordano and 47 guests