Information générale
Catégorie:
Programmation Orientée Object
Titre:
Creating/Writing to object methods at run-time?
Hi All,
I have created an enhanced textbox control that has
a InquiySQL property that can be used to let the user
popup a list of values by right-clicking the mouse.
This works fine, but in order to do so you need to also
have the associated PopList control (which is instantiated
at run-time) in your class.
I am thinking that in good OOP development, the textbox object
itself should take care of displaying the popup information
without requiring this external PopList class.
The PopList control is basically a container with a listbox
inside. I could instantiate these at run-time from inside my
listbox control, but then how do I make them react the way
I want? How do I change the methods of these newly instantiated
objects at run-time?
Can it be done or am I dreaming of a perfect OOP world?
Thanks in advance
Pascal
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