PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → API SendMessage + Event()
API SendMessage + Event()
Started by Nico Vancauwenberghe, Aug., 02 2003 1:51 PM - No answer
Posted on August, 02 2003 - 1:51 PM
I have a cMessage class that registers a windowmessage in its constructor and a method to send the message to all active windows. 2 global object vars msgCustomer en msgDocument that instantiate cMessage on project intialization.
Window 'CustomerOverview' sends message through msgCustomer on row selection of tabCustomer (tablecontrol). Window 'DocumentOverview' sends message through msgDocument on row selection of tabDocument and receives message using Event(), window 'Customer' receives message using Event(), window 'Document' receives message using Event(). Fyi receiving windows perform a refresh method.
Open windows: CustomerOverview(TX) - Customer(RX) => OK
Open windows: CustomerOverview(TX) - DocumentOverview(RX)(TX) => OK
Open windows: CustomerOverview(TX) - DocumentOverview(RX)(TX) - Document(RX) => OK
Open windows: CustomerOverview(TX) - DocumentOverview(RX)(TX) - Document(RX) -Customer(RX) => NOT OK
Open windows: CustomerOverview(TX) - DocumentOverview(RX)(TX) - Customer(RX) => NOT OK
To cut a long story short: My event in window Customer is not fired when other receiving windows are active .
Can anyone help?


ns-consulting