Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hidden Method Question
Message
De
29/11/2001 18:49:20
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00587667
Message ID:
00587780
Vues:
34
>What I am trying to do is this:
>
>I have a container, Cnt1, on which I dropped another
>smaller container, Cnt2.
>
>When the user moves the mouse over cnt2, I want to call a
>method on Cnt1, as in:
>
>This.Parent._HotTrack()
>

>
>Since this is a developer's control, I dont want my user's, other
>developers, to be able to see the method _HotTrack().
>
>This HAS to be possible, I just don't know how. Any ideas?

Since cnt2 or any other object can't call the hidden methods of cnt1, but it can call visible methods, you'd have to create a visible method in cnt1 which would in turn call this._hottrack:
* cnt1.DoHotTrack:
this._HotTrack
Then from cnt2 you can call
This.parent.DoHotTrack

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform