On Dec 6, 2008, at 6:15 PM, Paul McNett wrote:
> Is there any special code that runs for the grid or column objects?
> Do you intercept
> paint events or anything along those lines?
Of course; events have to be intercepted to prevent objects from
acting like live objects. The code is in ClassDesignerControlMixin.py;
here's the relevant section:
# Update bindings; do control-specific things.
if isinstance(self, dabo.ui.dGrid):
coolEvents = (dEvents.GridHeaderPaint,
dEvents.GridRowSize,
dEvents.GridColSize,
dEvents.GridHeaderMouseLeftDown,
dEvents.GridHeaderMouseMove,
dEvents.GridHeaderMouseLeftUp)
badEvents = []
for bnd in self._eventBindings:
if bnd[0] not in coolEvents:
badEvents.append(bnd)
for bad in badEvents:
self._eventBindings.remove(bad)
What this does is unbind all the events except those in 'coolEvents'.
This has been working fine until the recent changes for Visible, and
then only when one column is set to Visible=False.
-- 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/[EMAIL PROTECTED]