PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → API SendMessage + Event()
API SendMessage + Event()
Débuté par Nico Vancauwenberghe, 02 aoû. 2003 13:51 - Aucune réponse
Posté le 02 août 2003 - 13:51
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