On Thu, Oct 13, 2011 at 10:08:51AM -0700, Paul McNett wrote:
> On 10/13/11 7:38 AM, Chris G wrote:
> > Finally to the question - is it possible to have a form/view of my table
> > that looks like the Browse tab view of the table but allows me to edit
> > (and add to) the records in place?
> 
> Yes.
> 
> > I want especially to be able to
> > create a view of the table that shows the records and columns exactly as
> > in the Browse tab but with an extra blank row/record at the bottom into
> > which one can simply type the next row's values using the TAB key to go
> > from column to column.  Ideally I'd like to be able to edit existing
> > records in the same manner (except of course that initial values are there
> > already) but that's not so important.
> 
> Yes.
> 
> > Having to click on each value to edit it is much too painful and the
> > ability to see the preceding records as one adds a new one is also very
> > important for this particular application.
> 
> There are cases for editable grids. You need to do two things:
> 
> 1) set grid.Column.Editable = True
> 2) set grid.Editable = True
> 
> Find the appwizard-generated code in ui/Grd<name>.py where <name> is the 
> table name.
> 
Excellent, that means I can edit the records, however I still can't move
easily from column to column except by using the mouse.  I also don't
get a new, empty row to fill in at the bottom.

I guess I need to hang some actions onto the TAB key such that hitting
it anywhere except on the last column moves to the next column and
hitting it when at the last column adds a new, blank, row to the table.

I'll go and have a play with the event handling etc.

> > So is it reasonably simple to do such a thing in dabo?
> 
> Reasonably simple, yes. However you don't get all the bells and whistles of 
> using a 
> real textbox, spinner, checkbox, etc.
> 
Seems good to me so far.

Thanks for the pointers.

-- 
Chris Green
_______________________________________________
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/20111013180428.GA16631@chris

Reply via email to