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


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

Re: System Menu Close

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From James Martin <james@northwoodlumber.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: System Menu Close
Date Wed, 5 Sep 2018 10:21:09 -0400
Organization A noiseless patient Spider
Lines 30
Message-ID <pmoool$88m$1@dont-email.me> (permalink)
References <44dbde38-618a-489e-b446-90639bb9c4fb@googlegroups.com> <pmondi$u8p$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 5 Sep 2018 14:21:09 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="855700bfc4a66d1c0c75e51947442240"; logging-data="8470"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195TvW8sWTDiq/iRFULFWxT"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Cancel-Lock sha1:04vjIs/XvDiCd8plkUPe9wpzUb0=
In-Reply-To <pmondi$u8p$1@dont-email.me>
Content-Language en-US
Xref csiph.com comp.lang.clipper.visual-objects:11870

Show key headers only | 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