EXE calling EXE - focus problem

EXE calling EXE - focus problem

Postby Otto » Thu Nov 26, 2009 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: EXE calling EXE - focus problem

Postby Antonio Linares » Fri Nov 27, 2009 7:42 am

Otto,

You could use WaitRun() to invoke the new EXE and disable your main window before:
Code: Select all  Expand view

oWnd:Disable()
WaitRun( cAnotherEXEName )
oWnd:Enable()
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: EXE calling EXE - focus problem

Postby Otto » Fri Nov 27, 2009 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests

cron