|
|
Clarion 6 - General
Started by Vernon Smith at 08-08-2008 2:48 PM. Topic has 2 replies.
 
 
|
|
Sort Posts:
|
|
|
|
08-08-2008, 2:48 PM
|
Vernon Smith
Joined on 01-28-2006
Arkansas, USA
Posts 40
|
Posting an Event to a control on a different window
|
|
|
|
|
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
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
Re: Posting an Event to a control on a different window
|
|
|
|
|
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.
Joined on 06-27-2006
Canberra Australia
Posts 22
|
Re: Posting an Event to a control on a different window
|
|
|
|
|
|
|
|
|
|