Re: DataGrid: some questions

2011-09-06 Thread Bob Sneidar
It is possible to determine that a click or double-click in the datagrid was not in an active row with data. Just get the dgHilitedLine(s) inside a mouseUp or doubleMouseUp handler. If it's empty the user clicked or double clicked in an empty space in the dataGrid. Trouble is, it works equally

Re: DataGrid: some questions

2011-09-06 Thread Bob Sneidar
I ran into this when I started out trying to make a datagrid operate like a simple spreadsheet. Turns out it is not a simple thing to do. You would have to trap for a returnkey in any cell in the last row, or a tabKey in the last cell of the last row, and call addLine followed by

Re: DataGrid: some questions

2011-09-06 Thread Pete
Yes, spreadsheets are pretty complex beasts. I've never had a need to implement one in LC but if I did, I think I'd just run Excel (or whatever spreadsheet program is appropriate), store the filename in LC then launch it whenever the user needed to access it. Horses for courses, as they say.

Re: DataGrid: some questions

2011-09-06 Thread Peter M. Brigham, MD
On Sep 6, 2011, at 4:07 PM, Pete wrote: Yes, spreadsheets are pretty complex beasts. I've never had a need to implement one in LC but if I did, I think I'd just run Excel (or whatever spreadsheet program is appropriate), store the filename in LC then launch it whenever the user needed to

Re: DataGrid: some questions

2011-09-06 Thread Pete
Great! Haven't come across that one before. The mental image of pigs climbing trees is quite disturbing! Pete Molly's Revenge http://www.mollysrevenge.com On Tue, Sep 6, 2011 at 2:33 PM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Sep 6, 2011, at 4:07 PM, Pete wrote: Yes, spreadsheets

Re: DataGrid: some questions

2011-09-06 Thread Bob Sneidar
Nuts to that! Bob On Sep 6, 2011, at 2:33 PM, Peter M. Brigham, MD wrote: You can try to teach a pig to climb trees, but it works better to hire a squirrel. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: DataGrid: some questions

2011-09-06 Thread J. Landman Gay
On 9/6/11 4:41 PM, Pete wrote: Great! Haven't come across that one before. The mental image of pigs climbing trees is quite disturbing! Deep within a forest, this little tortoise begins to climb a tree. After hours of effort, he reaches the top, jumps into the air waving his front legs and

DataGrid: some questions

2011-09-04 Thread Matthias Rebbe
Hi, what do i have to do to let my user to add a new row to a DataGrid table? I can edit an existing row(with already text in it), but i cannot add a new line to the grid by clicking into the next empty row. Is that not possible? And is it possible to let a user just enter a number of a

Re: DataGrid: some questions

2011-09-04 Thread Admin
_add a new line to the grid by clicking into the next empty row_ That would be unwise, since to edit a cell, you would normally click in the cell in question. Better to have a add row button or make a clickable location that when clicked on adds a row above or below that area. Mike On

Re: DataGrid: some questions

2011-09-04 Thread zryip theSlug
On Sun, Sep 4, 2011 at 3:48 PM, Matthias Rebbe matthias_livecode_150...@m-r-d.de wrote: Hi Matthias, what do i have to do to let my user to add a new row to a DataGrid table? I can edit an existing row(with already text in it), but i cannot add a new line to the grid by clicking into the

Re: DataGrid: some questions

2011-09-04 Thread Matthias Rebbe
Hi Zryip, thank you very much. As a DGH user, you can follow the lesson I've just uploaded: http://lessons.runrev.com/s/lessons/m/4068/l/28533-How-Do-I-Create-a-Menu-Button-in-a-Column- I followed your instructions in that lesson and it works. But there is a little but I entered 2

Re: DataGrid: some questions

2011-09-04 Thread David Glass
You could put the option menu's text into the column's text in the row's FillInData handler, I think. On 09/04/2011 3:54 PM, Matthias Rebbe wrote: I entered 2 values for that option menu for example Meier and Schulze. If i now add a line to the DataGrid, the option menu already shows Meier.