Ed Leafe wrote:
> On Jun 13, 2007, at 9:35 AM, Uwe Grauer wrote:
>
>> How do i bind a left double click event to a dGrid in code (no CD)?
>> Do i have to invent my own class for the grid, or is it
>> possible to use a special naming (with a RegID) for this?
>> I small code snippet would be nice.
>
> The events have different names, due to the complex nature of a
> grid. They are:
>
> GridHeaderMouseLeftDoubleClick (for double-clicks in the header)
> GridMouseLeftDoubleClick (for double-clicks in the main grid area)
>
> You bind them as you would any other event.
>
Still don't know what to do.
Up to now i used this in my form:
vs.append(dabo.ui.dButton(self, Caption="Show / Edit",
Name="btnShow", OnHit=self.onHit_btnShow), alignment="middle",
border=5)
and then:
def onHit_btnShow(self, evt):
self.Form.callEditPer(False)
Is this the prefered method?
Uwe
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]