Information générale
Catégorie:
Programmation Orientée Object
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement