Ed Leafe wrote:
First off, hope you aren't reading this today, but instead are enjoying your Thanksgiving.

Well, I read it that day but didn't respond immediately. Does that count? I'm still full from all the overeating. :)


When you do get around to Dabo again, can you let me know if it would be at all possible to extend autobinding to methods defined in a class, as opposed to the form? What I have in mind is when writing a WizardPage class, you add controls to that page, and the methods for handling the events of that control are also defined in the class. But if I want to take advantage of Autobinding, I need to add the method to the form that the page will be used in. Is it possible to have the code that does the binding also look in the class the control is defined in?

I've been running into this issue too. Here's what I propose:

+ Keep the object registration at the form level.

+ Add code to autoBindEvents() to search not just the form and the class for matching method signatures, but also all parent containers. All found method signatures will be bound, even if there's one at the panel level and one at the form level.

(I was originally going to propose making a dContainerMixin, moving the object registration machinery there, adding a RegisterWith property, etc. etc. but then came up with the above simpler solution which would seem to solve our problem.)


If not, no biggie - I can simply bind manually. Just wondered if it would be possible.

Yep, and thanks for bringing it up. I'll see about doing it tonight even.


--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to