On Aug 7, 2009, at 3:49 PM, [email protected] wrote:

> I've gone through the dabo tutorials and constructed a few forms that
> manipulate data in grids with parent-child relationships. Now I'd  
> like to
> attach some functions to buttons on the form. For example, if I   
> have a parent
> table with lots of entries, I'd like to add a "Find" button  that  
> lets the
> user enter a key string, and then have the pointer moved to the   
> matching
> record before returning to the grid/form. I understand from some   
> discussions
> here that what I want to use is a dialog. I see  how you can  design  
> a dialog
> using the Class Designer.

        Just in case you didn't know: incremental search is built into the  
grid: click on any column and start typing. The grid will  
automatically move to the first matching record.

        Even if that isn't the exact interface you need, you can look at the  
code for the 'runIncSearch' method of dGrid.py: it might coding your  
custom search easier.


-- 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]

Reply via email to