On Monday 04 May 2009 01:18:21 pm Paul McNett wrote:
> Steve Litt wrote:
> > Hi,
> >
> > Do apps produced by Dabo allow use of keystrokes rather than mice? For
> > instance, if I was in a read-only grid, could I program it to arrow down
> > to the record I wanted, then press Ctrl+E to edit it in a form I'd
> > programmed?
>
> Yes, you could program it to do this. Something like:
>
> class MyGrid(dabo.ui.dGrid):
> def afterInit(self):
> self.bindEvent(dabo.dEvents.KeyDown, self.onKeyDown)
>
> def onKeyDown(self, evt):
> if evt.EventData["controlDown"] and evt.KeyCode == ord("e"):
> self.Form.gridEdit()
>
> And you'd program the method gridEdit() in your form to launch that other
> form you programmed.
>
> Paul
Wonderful! Could I also, on a form field, set it to, instead of giving a
dropdown, launch a read-only grid of the table from which the form field will
be selected, with that grid able to do what we discussed above?
Thanks
SteveT
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt
_______________________________________________
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]