Hi Steve,

Right now I do this, which works within the same process, but not coming from 
another process and clicking on the wrong window. Where would I fold in the 
process ID?

Thanks,
Don

case of

: (Form event=On Deactivate) & (bCnDlg=0) & (bOKdlg=0) & (bPrint=0) & 
(bMyCnfmOption=0) 

If (Current process=Frontmost process) 
  BRING TO FRONT(Current process)
End if 

end case


-----

>Don,
>
>For situation #1, simply put code in the "On Deactivate" form event and
>make the window come back to the front.  Be sure to get the Process ID
>so you know to only activate this logic when the user is physically in
>the process.
>
>Best,
>
>
>Steve
>
>
>-----Original Message-----
>From: 4D_Tech <[email protected]> On Behalf Of Don Lapin via
>4D_Tech
>Sent: Thursday, May 2, 2019 5:59 PM
>To: 4D Tech Mailing List <[email protected]>
>Cc: Don Lapin <[email protected]>
>Subject: Window reverse layering issues
>
>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]
**********************************************************************

Reply via email to