Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap a change in a ListBox after a MESSAGEBOX()
Message
De
13/03/2016 17:09:03
 
 
À
13/03/2016 15:53:29
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01632877
Message ID:
01632981
Vues:
39
Lutz,

In VFP, there is no "normal event sequence" other than the one that respects the normal sequence of commands and user interaction.

It's not me that thinks that an highlighted item in a list should reflect the list value: it's the expectation of any user working in a WIMP environment.

Thisform.Retresh() is used only once after a message box appears, only in that occasion, and to minimize the effects of a flaw in VFP. I can surely live with that.

You're assuming that the message box is used for display purposes only. You're assuming wrong. Nevertheless, I appreciate the effort of this last suggestion and thank you for that.


>Antonio
>
>May general impression is, that because of the moment you call the MESSAGEBOX, the normal event sequence is broken. For that the object that gets focus will not recieve the focus the way you think it should. I can not express how I dislike your aproach with the messageboxes in that moment - but it's up to you. At least consider a different way to solve your problem - at least if there is such an urge to have a messegbox while you move the focus. Possibly you can simply switch properties as enabled / readwrite / visible, caption or something to express the stuff you have in your messagebox.
>
>I can not encourage you to THISFORM.REFRESH over and over, in special in crowded forms this might slow down VFP. That's way I've used the property for the messagebox that recieves the focus. Been through this.
>
>In an other solution you might to use the timer to display the Messagebox, moving the message through a property of the timer. This removes the need of refresh at all, and the event sequence is not broken. Then even the item clicked will be activated.
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform