Welcome to Clarion Community Sign in | Join | Faq

Clarion 6 - General

Started by Vernon Smith at 08-24-2008 10:47 AM. Topic has 2 replies.

Print Search
Sort Posts:    
   08-24-2008, 10:47 AM
Vernon Smith is not online. Last active: 11/21/2008 1:27:15 AM Vernon Smith

Top 10 Posts
Joined on 01-28-2006
Arkansas, USA
Posts 40
Focusing on a window
Reply Quote
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 is not online. Last active: 8/24/2008 4:33:13 PM RexK

Top 75 Posts
Joined on 11-03-2005
Posts 6
Re: Focusing on a window
Reply Quote
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 is not online. Last active: 9/21/2008 10:57:19 PM uds0

Top 100 Posts
Joined on 06-05-2006
Posts 6
Re: Focusing on a window
Reply Quote
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

Powered by Community Server, by Telligent Systems