FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EXE calling EXE - focus problem
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
EXE calling EXE - focus problem
Posted: Thu Nov 26, 2009 09:02 AM

To all,

I have a program to control and navigate subprograms on a touch screen system.

The problem is that if a user for starting a subprogram (exe) double clicks the focus is again on the main (calling) program.
Does someone know a solution for this problem?

Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EXE calling EXE - focus problem
Posted: Fri Nov 27, 2009 07:42 AM
Otto,

You could use WaitRun() to invoke the new EXE and disable your main window before:
Code (fw): Select all Collapse
oWnd:Disable()
WaitRun( cAnotherEXEName )
oWnd:Enable()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: EXE calling EXE - focus problem
Posted: Fri Nov 27, 2009 09:59 AM

Hello Antonio,
thank you.
I tried your suggestion but I feel that double click is executed before ownd:disable().
This does not work. As a workaround I use: SetWindowPos( ::hWnd, -1, 0, 0, 0, 0, 3 )
in the “called” programs.

Best regards,
Otto

Continue the discussion