General information
Category:
Object Oriented Programming
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only