Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy Inheritance Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00591516
Message ID:
00592155
Vues:
15
Hi Edgar,

Here's whats happening. The LED class is a container with 6 image controls and a timer in it. The container is the same size as all the other controls. When you click on it you are clicking on one of the contained controls and that click event is firing. If you make the container part bigger and then click on that and not on the actual light, you'll get the wait window.

Better Solution: Open the LED class, in the click event of each of the image controls (Each one is named the color of the light) add "This.parent.click" in the click event. Now when you click on the picture control it just calls the main containers click event.

hth

>Hmmm...
>LED.VCX contains LED
>LED has Click (placed code here class level) and flick methods
>flick is called by the form activate without a problem:
>thisform.led5.flick
>
>Why can't I 'click' any led on the active form?
>
>
>>Hi Edgar,
>>
>>The Led class has container and six controls with Click event. Where did you put your code? How did you try to trigger Click Event?
>>
>>>I've taken the LED Class.
>>>
>>>Added a line of code in the click
>>>wait window "HI from "+This.cColor TimeOut 2
>>>
>>>Added six "lights" to a form-screen and Run the form
>>>
>>>Why can't I get the window message?
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform