Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11870

Re: System Menu Close

From James Martin <james@northwoodlumber.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: System Menu Close
Date 2018-09-05 10:21 -0400
Organization A noiseless patient Spider
Message-ID <pmoool$88m$1@dont-email.me> (permalink)
References <44dbde38-618a-489e-b446-90639bb9c4fb@googlegroups.com> <pmondi$u8p$1@dont-email.me>

Show all headers | View raw


Here is what I do:

LOCAL hSysMenu
	
	hSysMenu := GetSystemMenu(SELF:Handle(0),FALSE)
	RemoveMenu(hSysMenu, SC_CLOSE, WM_SYSCOMMAND)

James

On 09/05/2018 09:58 AM, JohnMartens wrote:
> Was it something like this ?
> 
> METHOD QueryClose() CLASS frmMyWindow
> RETURN SELF:lMyWindowCanBeClosed
> 
> When setting SELF:lMyWindowCanBeClosed to TRUE when it is closed in the 
> right way
> 
> John
> 
> 
> Op 5-9-2018 om 13:51 schreef Jeff Rollo:
>> Hi. I used to use a function called SystemMenuClose to stop users 
>> hitting the X top right of windows to stop users closing the window 
>> incorrectly.
>>
>> I cannot now work out how I achieved it.
>>
>> Does anyone have any ideas pleased?
>>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

System Menu Close Jeff Rollo <jrollo64@gmail.com> - 2018-09-05 04:51 -0700
  Re: System Menu Close JohnMartens <martens@tennishulp.info> - 2018-09-05 15:58 +0200
    Re: System Menu Close James Martin <james@northwoodlumber.com> - 2018-09-05 10:21 -0400
      Re: System Menu Close Jeff Rollo <jrollo64@gmail.com> - 2018-09-05 22:13 -0700
      Re: System Menu Close JohnMartens <martens@tennishulp.info> - 2018-09-06 07:49 +0200
        Re: System Menu Close Jeff Rollo <jrollo64@gmail.com> - 2018-09-05 23:10 -0700
          Re: System Menu Close JohnMartens <martens@tennishulp.info> - 2018-09-06 08:55 +0200
    Re: System Menu Close Jeff Rollo <jrollo64@gmail.com> - 2018-09-05 22:12 -0700
      Re: System Menu Close JohnMartens <martens@tennishulp.info> - 2018-09-06 07:28 +0200

csiph-web