Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop class on form and execute code
Message
De
24/01/2001 13:30:02
 
 
À
24/01/2001 13:24:05
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00463901
Message ID:
00468053
Vues:
28
>>Thanks, but that's not what I'm looking for. I really just want some code to execute when I drop a new control on a form. Kind of like a builder, but it's not. I don't want anybody to have to do *anything* except drop the control. No modifying the BUILDER.DBF, no making sure the Builder Lock is pressed, etc. I just want some Design Mode Only code to execute, that's all. Thanks again.
>
>I think the class.init code runs when it's instantiated, even in design mode (i.e. we're not moving just cardboard cutouts, it's live frogs and eels). All you have to do is to know when you're in design mode (maybe by checking aSelObj() function?) and then run this from within the .init - the only obstacle is that this code is always there, even if you're not in design mode.

I don't think so Dragan, at least it doesn't run the Init code when I drop a control on a form. :(

Having ANY code that I could reliably fire off at design time automatically wouldn't be a problem if it was always there, as long as I could determine design vs runtime.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform