Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating/Writing to object methods at run-time?
Message
 
À
27/04/1999 19:03:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00212771
Message ID:
00213928
Vues:
27
>I think you can start with container class including textbox and listbox. >Initially, Listbox.Visible=.f. and Textbox.Rightclick event code will take >care about Listbox.Visible=.t., resizing the container etc.

What would you suggest then if the popup class needs to be re-deployed in another scenario. Of, what if you needed to change the overall behavior? For example, instead of a Listbox, you wanted to use the MS Popup Control or a shortcut menu instead? While your suggestion will work, it is rather limiting. I only bring this up because the context of the question was directly targeted toward a "good OOP development"....

I don't really mean to offend here....seriously, I don't. It is interesting however, that many suggested solutions to stuff like this usually peg things in the UI. Granted, you will always implement stuff like this in the UI. However, the classes, when developed, should not depend on a specific UI.

Agree or disagree????
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform