On Aug 10, 2008, at 7:44 AM, Ed Leafe wrote:

>> Just a thought Ed, but what about making it so that the setter for
>> col.CustomEditorClass does the makeGridEditor() call, so that the
>> appdev
>> need only:
>>
>> col.CustomEditorClass = MyDaboControlSubclass
>
>       But then you wouldn't be able to customize your editor. There are
> several grid editor-specific methods that can be hooked into, so you
> could do:
>
> BaseEditor = dabo.ui.makeGridEditor(MyDaboControlSubclass)
> class CustEditor(BaseEditor):
>       def StartingKey(self, evt):
>               # Do something special
> col.CustomEditorClass = CustEditor


        Also, you could create the class definition once, and assign it to  
multiple columns in multiple grids throughout your app.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/%(messageid)s

Reply via email to