« Return to Thread: dGrid and DataType="list" question

Re: dGrid and DataType="list" question

by Paul McNett :: Rate this Message:

Reply to Author | View in Thread

Paul McNary wrote:
> Can the CustomEditorClass property be set in Class Designer and if so
> what is a correct way to do it?

Ed?


> Where do I find what CustomEditorClasses are available?

This is an area that isn't well documented. Here are the definitions
from dGrid.py:

mac:~/dabo/dabo/ui/uiwx pmcnett$ grep -i 'self\..*editorclass \=' dGrid.py

self.stringEditorClass = wx.grid.GridCellTextEditor
self.wrapStringEditorClass = wx.grid.GridCellAutoWrapStringEditor
self.boolEditorClass = wx.grid.GridCellBoolEditor
self.intEditorClass = wx.grid.GridCellNumberEditor
self.longEditorClass = wx.grid.GridCellNumberEditor
self.decimalEditorClass = wx.grid.GridCellNumberEditor
self.floatEditorClass = wx.grid.GridCellFloatEditor
self.listEditorClass = wx.grid.GridCellChoiceEditor
#self.listEditorClass = GridListEditor

Mostly, you don't need to know about the normal ones, as Dabo will
choose the correct editor based on the datatype of the column.

Paul


_______________________________________________
Post Messages to: Dabo-users@...
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/487E543C.7030303@...

 « Return to Thread: dGrid and DataType="list" question

LightInTheBox - Buy quality products at wholesale price!