Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click event firing ... or not?
Message
De
29/10/2008 16:09:16
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01358161
Message ID:
01358175
Vues:
25
>>I've got a modeless form with an OleThumbnail control & an OleImage control that I've been testing with Do Form from the command window. I have some code in the Click event of the OleThumbnail control. The form and the clicks work as expected when invoked this way.
>>
>>I tried testing within the system, which calls it from a Do Form in a menu pad while a window switchboard created from a .SPR is displayed. Now the OLEThumbnail clicks aren't responding. If I call the form from the menu without the .SPR switchboard showing, it behaves properly. If I hide the switchboard window, the clicks don't respond.
>>
>>I put some debugouts in the Click event of the OleThumbnail control and turned on Event tracking, then tried running each scenario to see what was going on. I found that the Do Form from the command window was showing the Click debugouts, but the appropriaate MouseDown and Click events were not logged. When called from the menu with the .SPR showing, the Click and MouseDown events were logged, but none of the debugouts appeared.
>>
>>In both cases, the GotFocus event and the debugout I had in the GotFocus event code for the control were displayed.
>>
>>Any clues would be appreciated.
>>
>>FWIW, we're using VFP6 with SP4, but the only options in the dropdown are SP5 or SP 3.
>>
>>Thanks,
>>June
>
>What is the active form in the moment of clicking? Can you record this too?

I click on the title of the form in question, then I click on each of two thumbnail images in the thumbnail control.

In the case that works, I see the form activate event in the Event Track, and each thumbnail gets selected as expected (due to my code in the click event). In the Event Track, I don't see the control Click, MouseDown and MouseUp events, but I do see the debugout in the control click event.

In the case that doesn't work, I see the form activate event in the Event Track, and nothing happens when I click on each thumbnail image. In the Event Track, I see the control Click, MouseDown and Mouse Up events, but not my debugout text.

There is a Read Cycle in the .SPR that creates the switchboard window, FWIW.
June
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform