if the user clicks on it to bring it forward it has to have received 
the click, and it should generate either or both outside call, activate.

Chip

On Fri, 3 May 2019 11:48:52 -0700, Don Lapin wrote:
> Hi Chip,
> 
> Does the incorrectly-layered window (the type 8 in this case, 
> supposed to be in back of the modal) receive events? I haven't tried 
> that yet.
> 
> Thanks,
> Don
> 
> 
>> how about...
>> a bit clunky - but should work
>> 
>> when you open the modal dialog on top of the non modal window, you grab 
>> the modal window's window reference.
>> 
>> then in the form event of the non-modal (I presume larger window)
>> during either On OUTSIDE CALL and/or ON ACTIVATE:
>> Hide Window(<modal window ref>)
>> Show window(<modal window ref>)
>> 
>> You have to issue Hide Window, otherwise Show Window does nothing.
>> This will bring the modal window to the front, removing the double 
>> square cursor
>> 
>> BTW - the user can also use <Space bar> to swap window positions if one 
>> gets hidden.
>> 
>> Side Note: this can be avoided on a Mac by using window type 34 (sheet 
>> window) then the dialog shows up as a 'pop down' window and is part of 
>> the main window.
>> 
>> Chip
>> 
>> On Thu, 2 May 2019 15:59:09 -0700, Don Lapin via 4D_Tech wrote:
>>> Having a couple of problems with window layering and wondered about 
>>> what other developers do as workarounds.
>>> 
>>> 1. A 4D application has two processes, each with windows being shown. 
>>> One process has two windows: a semi-modal dialog on top of a Type 8 
>>> non-modal. User is over in another (windowed) process, and clicks 
>>> back onto the wrong window of the first process (the Type 8 instead 
>>> of the semi-modal)...and so gets the double-square cursor. The user 
>>> is not familiar with 4D per se and therefore doesn't know about 
>>> [Ctrl]-Z.
>>> 
>>> 2. The same situation as #1, but the user is in an external 
>>> application like Chrome. Instead of using [Alt]-[Tab] to return to 
>>> 4d, the user clicks with the mouse, and doesn't click on the 
>>> frontmost window.
>>> 
>>> Anybody?
>>> 
>>> Thanks,
>>> Don
>>> 
>>> **********************************************************************
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:[email protected]
>>> **********************************************************************
>> ---------------
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing 
> 
> 
> 
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to