Welcome to Clarion Community Sign in | Join | Faq

Clarion 6 - General

Started by Vernon Smith at 08-08-2008 2:48 PM. Topic has 2 replies.

Print Search
Sort Posts:    
   08-08-2008, 2:48 PM
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
Posting an Event to a control on a different window
Reply Quote
How do I post an event to a control (say a button) on a different window. I try to use: Post(Event:Accepter,?Button1,OtherWinThread), but I get a compile error saying ?button1 is unknown as it does not belong to this windo.

thanks,

Vernon smith
   Report 
   08-09-2008, 11:42 PM
Shankar is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: Posting an Event to a control on a different window
Reply Quote
Hi Vernon,

Since the ?Button1 is on the other window, the RTL is unable to derive the FEQ number of the control. It is better to store the the FEQ into a Global Variable and use i.e.

In the procedure containing ?Button1 - after opening the window ::

Glo:Button1Feq = ?Button1

In the Calling procedure ::

POST(Event:Accepted,Glo:Button1Feq,OtherWinThread)

Regards

Shankar
   Report 
   08-10-2008, 3:28 PM
Steve B. is not online. Last active: 11/5/2008 12:48:00 PM Steve B.

Top 25 Posts
Joined on 06-27-2006
Canberra Australia
Posts 22
Re: Posting an Event to a control on a different window
Reply Quote

You can check out the WinRef example at http://www.jadutechnologies.com/free_downloads.htm#WinRef for several examples of how to achieve inter-window communiutcations.

 

I'm not sure if the includes NOTIFY so there may be another option for you.

 


Steve B.
   Report 
Clarion Communi... » Clarion » Clarion 6 - Gen... » Re: Posting an Event to a control on a different window

Powered by Community Server, by Telligent Systems