[datagrid] how to search and show the result?

Robert Mann rman at free.fr
Sun Aug 22 17:16:15 EDT 2010


http://runtime-revolution.278305.n4.nabble.com/file/n2334409/testing_datagrid_search.rev
testing_datagrid_search.rev 

An example is worth a thousand words... 

In all fields, the found chunk when not actualy visible, is brought into
focus by the find comand, except for datagrid, although it works with
datagrids for occurences which are visible.

This is understandable given how dataGrid works only building fields for the
visible part of the table.

So as it stands, if there is a datagrid on a stack and if one wants to
implement a search that searches everywhere, the standard find command must
be doubled by a dataGrid related dgFind which is not trivial to do since the
existing findline command reports only the first occurence. 

With your findline command that reports multiple occurences, it remains to
implement the actual find in datagrid which will show the found chunk ; and
finally combine both standard find and dgFInd into a single findAll command!

So I filed a request for an update of the find command, that really should
work on all GUI elements for simplicity and coherence. In practice I beleive
we'll have to sort out some sort of workaround once more, blessing your
coming dg helper library!

Robert
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-datagrid-how-to-search-and-show-the-result-tp1311658p2334409.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the Use-livecode mailing list