|
|
Clarion 6 - General
Started by Vernon Smith at 08-24-2008 10:47 AM. Topic has 2 replies.
 
 
|
|
Sort Posts:
|
|
|
|
08-24-2008, 10:47 AM
|
Vernon Smith
Joined on 01-28-2006
Arkansas, USA
Posts 40
|
|
|
Good day. I know this must be easy, but I am not sure how to do it. How do I change focus from one window to another in my app? I know the window's thread and tried posting the event:gainfocus, but that did not work.
thanks!
Vernon Smith
|
|
|
|
|
Report
|
|
|
|
08-24-2008, 3:39 PM
|
RexK
Joined on 11-03-2005
Posts 6
|
|
|
POST(EVENT:Notify,,ThreadNo)
In the other window at the 'Event:Notify' embed do what you need to do to show the window. I use Capesoft's WinEvent which has a WinBringtoFront() function, but I believe there is a WinAPI function that does the same. HTH Cheers Rex
|
|
|
|
|
Report
|
|
|
|
09-21-2008, 12:12 PM
|
uds0
Joined on 06-05-2006
Posts 6
|
|
|
I think PROP:Active causes a window to gain focus. There is also a PROP:Iconize that should force the window open if iconized to the task bar.
HTH, Paul
|
|
|
|
|
Report
|
|
|
|
|
Clarion Communi... » Clarion » Clarion 6 - Gen... » Re: Focusing on a window
|
|
|
|