Selecting a line in a datagrid also selects a line in another (same card)

2014-11-19 Thread André Bisseret
Bonjour, I have a stack with 12 cards. On each card I have 3 data grids (tables). First time I get the following problem : When I select a line in one of the 3 data grids, that triggers the selection of one line in the others data grids!!! I tried to trap the message selectionChanged without

Re: Stripping Returns

2014-11-19 Thread JB
Thank you. The logic is simple enough. Even so it should be noted in the read file that reading to the end of a file will fail to provide you the info if the file has more than 65,535 characters. John Balgenorth On Nov 18, 2014, at 8:35 PM, dunb...@aol.com wrote: Hi. Did you try this?

Re: Find the scroll location in wrapped field

2014-11-19 Thread James Hale
Are we referring to spaceAbove and spaceBelow? Proof that I rarely came across them :-) In my defense when I began doing what I was doing they had yet to be interpreted by the htmltext conversion. James ___ use-livecode mailing list

Re: Selecting a line in a datagrid also selects a line in another (same card)

2014-11-19 Thread Pi Digital
This is a bug. Yay! Report it my friend. quality.livecode.com Sean Cole Pi Digital -- This message was sent from an iPhone, probably because I'm out and about. Always contactable. Well, most of the time :/ On 19 Nov 2014, at 09:37, André Bisseret andre.bisse...@wanadoo.fr wrote:

Re: Find the scroll location in wrapped field

2014-11-19 Thread James Hale
I am trying to build a special purpose e-Book where the user can shrink and expand the text as needed with everything scaling, looking really nice with fluid page turning. And this is why you want to locate the line. If I understand, you want the line that is positioned at the top of the

Calculate number of rows in a DataGrid

2014-11-19 Thread Terence Heaford
How can I calculate the number of rows in a DataGrid. I don’t mean the dgNumberOfLines as this is just the number of rows containing data. I actually need the number of visible rows. The DataGrid can be resized by script. It is straightforward where the height of the header and the height of

Re: Find the scroll location in wrapped field

2014-11-19 Thread Mike Doub
I was hoping that the page ranges bug would get fixed. I am trying to do this myself but not being able to tell where soft line breaks occur has me blocked. Some one posted a summary sizing of all of the different parts of a character. Unfortunately I can't find it. Now that I know about

Re: Whats the proper way to show a help field?

2014-11-19 Thread dunbarx
Hi again. Not sure what you mean. You do know that the tooltip is a property, and need not just be fixed text, right? on mouseMove set the tooltip of me to the mouseLoc end mouseMove Try this in your rect. You will want to make sure to knock off the toolTipDelay. Craig

Re: Stripping Returns

2014-11-19 Thread dunbarx
You only need to worry about that if you are loading all that data in a field. You might store it in a custom property, for example, and never know there was an issue at all. By the way, that might be useful for you, paging data in usable chunks as needed. But it would be a helpful hint, I

Re: Whats the proper way to show a help field?

2014-11-19 Thread Earthednet-wp
Craig, Thanks for that! No, I didn't know I could use the tooltip for that. So I could do something like: Set the text of the tooltip of me to mytext as the mouse is moved? Bill William Prothero http://es.earthednet.org On Nov 19, 2014, at 7:34 AM, dunb...@aol.com wrote: Hi again.

Re: Whats the proper way to show a help field?

2014-11-19 Thread Alejandro Tejada
Craig wrote: on mouseMove set the tooltip of me to the mouseLoc end mouseMove Try this in your rect. You will want to make sure to knock off the toolTipDelay. Really clever! :-) In Linux, the tooltip get stuck in one place and does not follow the pointer within the graphic rect. Al

Markingdown The User Guide

2014-11-19 Thread Richmond
Fantastic news: http://livecode.com/blog/2014/11/18/markingdown-the-user-guide/ Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Running Apache Under Yosemite

2014-11-19 Thread Bob Sneidar
Well isn’t that special? sigh Good thing I am not currently using Apache for anything… am I??... Bob S On Nov 18, 2014, at 11:41 , Richard Gaskin ambassa...@fourthworld.commailto:ambassa...@fourthworld.com wrote: If this is for personal use for testing (local host only, no open ports) the

Re: Whats the proper way to show a help field?

2014-11-19 Thread Bob Sneidar
Edit the tooltip On Nov 18, 2014, at 15:00 , William Prothero proth...@earthednet.org wrote: Folks: I have a help field that I want to pop up and follow the mouse when it’s within a specific rect. What I’m doing is showing the x,y values in a data plot region. So, I do something like:

Re: Stripping Returns

2014-11-19 Thread J. Landman Gay
Reading a file always gives you all the content regardless of the size, up to memory limits. Displaying a long line of text will truncate it after 62k but as I understand it, the truncation is visual only. If a script asks for the line it is all returned. (Better check that, but that was my

Re: Selecting a line in a datagrid also selects a line in another (same card)

2014-11-19 Thread Bob Sneidar
Do all the data grids have the same name? Did you copy/paste or clone them? I had issues with cloning data grids in the past so I do not do that anymore. I drag a fresh data grid from the tools pallet every time. Never had a problem since. Bob S On Nov 19, 2014, at 01:37 , André Bisseret

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Bob Sneidar
dgNumberOfLines - Returns the number of lines displayed in the data grid. This is obviously a misnomer. If I have a piece of lined paper with nothing on it, and someone asks me how many lines are on it, I start counting blank lines. I don’t answer “Zero.” Barring that, you will have to do some

Re: Whats the proper way to show a help field?

2014-11-19 Thread dunbarx
Well, not quite. The toolTip is a property, and must be set directly. You might say it has no text property, being a property already. You might also say that the toolTip property is, already, its text. In other words, keep it simple. Just set it and go... Craig -Original Message-

Re: Running Apache Under Yosemite

2014-11-19 Thread Richard Gaskin
Gregory Lypny wrote: Richard Gaskin wrote: According to this blog the upgrade should allow you to use your old config, but it will replace it with a new one - this includes instructions on finding and restoring the old config: http://brianflove.com/2013/10/23/os-x-mavericks-and-apache/

Re: Selecting a line in a datagrid also selects a line in another (same card)

2014-11-19 Thread André Bisseret
Le 19 nov. 2014 à 17:17, Bob Sneidar a écrit : Do all the data grids have the same name? Did you copy/paste or clone them? I had issues with cloning data grids in the past so I do not do that anymore. I drag a fresh data grid from the tools pallet every time. Never had a problem since.

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Trevor DeVore
On Wed, Nov 19, 2014 at 6:59 AM, Terence Heaford t.heaf...@btinternet.com wrote: How can I calculate the number of rows in a DataGrid. I don’t mean the dgNumberOfLines as this is just the number of rows containing data. I actually need the number of visible rows. The DataGrid can be resized

Re: Running Apache Under Yosemite

2014-11-19 Thread Mark Talluto
On Nov 19, 2014, at 8:09 AM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Well isn’t that special? sigh Good thing I am not currently using Apache for anything… am I??... Bob S On Nov 18, 2014, at 11:41 , Richard Gaskin ambassa...@fourthworld.commailto:ambassa...@fourthworld.com

Re: Stripping Returns

2014-11-19 Thread dunbarx
Jacque. The text is truncated, not simply not displayed: on mouseUp put 1234567890 into temp repeat 1 put temp after accum end repeat put accum into fld 1 -- 110,000 chars answer the length of fld 1 end mouseUp You get 65,533. Not sure where the last two chars

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Peter Haworth
dgVisibleLines of the datagrid Pete lcSQL Software On Nov 19, 2014 3:59 AM, Terence Heaford t.heaf...@btinternet.com wrote: How can I calculate the number of rows in a DataGrid. I don’t mean the dgNumberOfLines as this is just the number of rows containing data. I actually need the number

Re: Running Apache Under Yosemite

2014-11-19 Thread François Chaplais
in addition, if you add virtualhost to MAMP ( http://clickontyler.com/virtualhostx/ , currently on saleand well worth the price) you can deploy your site/web app/etc.. on your LAN and test various configuration (PC/Mac/Linux/iPhone/iPad/various androids etc …) I use it to test my site on

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Richmond
On 19/11/14 19:03, Peter Haworth wrote: dgVisibleLines of the datagrid Pete lcSQL Software On Nov 19, 2014 3:59 AM, Terence Heaford t.heaf...@btinternet.com wrote: How can I calculate the number of rows in a DataGrid. I don’t mean the dgNumberOfLines as this is just the number of rows

Meaningful and verbose error messages in LiveCode

2014-11-19 Thread Alejandro Tejada
Recently, Richmond wrote: Fantastic news: http://livecode.com/blog/2014/11/18/markingdown-the-user-guide/ This blog post describes the work in progress to include LiveCode User Guide in GitHub. Now, I wonder if, in the same way, Could we edit error messages in Livecode IDE to make them more

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Richmond
On 19/11/14 19:33, Richmond wrote: On 19/11/14 19:03, Peter Haworth wrote: dgVisibleLines of the datagrid Pete lcSQL Software On Nov 19, 2014 3:59 AM, Terence Heaford t.heaf...@btinternet.com wrote: How can I calculate the number of rows in a DataGrid. I don’t mean the dgNumberOfLines as

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread Richmond
On 19/11/14 19:52, Alejandro Tejada wrote: Recently, Richmond wrote: Fantastic news: http://livecode.com/blog/2014/11/18/markingdown-the-user-guide/ This blog post describes the work in progress to include LiveCode User Guide in GitHub. Now, I wonder if, in the same way, Could we edit error

language syntax question

2014-11-19 Thread Mike Doub
i have been struggling with a couple of language issues and I hope some one can set me straight. Issue 1). What is the syntax to get the contents of a field when you have the long IDE to the field. Put something ( long ID of field foo, 2) into x ... Function something obj pl Get the

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Terence Heaford
On 19 Nov 2014, at 16:51, Trevor DeVore li...@mangomultimedia.com wrote: *dgVisibleLines* - Returns the first and last line being displayed in the data grid as a comma delimited list. Useful if you want to provide visual feedback as to which lines are being displayed. Thanks for the

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Richmond
This: put the dgNumberOfLines of group myGrid works perfectly. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Stripping Returns

2014-11-19 Thread JB
I knew there were limits for variables and if I am correct they are the same as field limits. I was not aware custom properties have no limits. It looks like reading in chunks is the way to go. Thank you. John Balgenorth On Nov 19, 2014, at 7:41 AM, dunb...@aol.com wrote: You only need to

Re: Whats the proper way to show a help field?

2014-11-19 Thread William Prothero
Craig: Ok, let me see if I’ve got it. on mouseMove put myText into toolTip —?? i.e. how do I get text that depends on the mouseLoc, into the tooltip contents? set the tooltip of me to the mouseLoc end mouseMove Tnx, Bill On Nov 19, 2014, at 8:32 AM, dunb...@aol.com wrote:

Re: Find the scroll location in wrapped field

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 6:36 AM, Mike Doub wrote: Some one posted a summary sizing of all of the different parts of a character. Unfortunately I can't find it. Now that I know about formattedrect I will give that a try for each char in a line and see if I can simulate the word wrapping of a line to

Re: Stripping Returns

2014-11-19 Thread JB
Thank you, Jacque. I thought things were not as they seemed and I was reading large files but the line limits would confuse me as to why some times they did not seem to matter like when reading a whole file and putting it in a field but if I converted the file I would need to save the converted

Re: language syntax question

2014-11-19 Thread Scott Rossi
See if this works for you: on mouseUp put something(long ID of field 1,2) end mouseUp function something obj, pl return the formattedRect of line pl of obj cr \ word 1 of line pl of (text of obj) end something Regards, Scott Rossi Creative Director Tactile Media, UX/UI

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread Alejandro Tejada
Hi Richmond, On Wed, Nov 19, 2014 Richmond wrote: In an ideal world (which, in case you don't know; this is not) an Open Source project should be 100% open; meaning we can edit everything . . . Actually, this not really possible. Developers who do not understand how LiveCode works could make

Re: language syntax question

2014-11-19 Thread Sean Cole (Pi)
Hi Mike Issue 1- Get is for parameters which 'word' is not. So you would use 'put' rather than 'get'. Get works well for formattedRect. To use 'get' for getting the word 1 of 'obj' you would do this: Get word 1 of line pl of the text of obj because 'the text' is a parameter of your 'obj'

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Trevor DeVore
On Wed, Nov 19, 2014 at 2:01 PM, Terence Heaford t.heaf...@btinternet.com wrote: Imagine a data grid with 20 rows with each row empty. I want to return 20. Ah, so you want to know how many rows could be drawn in the visible area of the data grid. This should work: put the dgWorkingRect of

Re: Stripping Returns

2014-11-19 Thread Jerry Jensen
A couple more points: The space ending the 1234567890 does wrap the line, but does NOT affect the limit. I tried putting the field back into a variable, and it is still 65533 length. The data is truncated. JB note: The limit is only in FIELDS, NOT VARIABLES. You can read a long file into a

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 1:31 PM, Alejandro Tejada wrote: Does exist a method to show our own custom warnings or messages when LiveCode display errors in our code? The error descriptions are stored in the cErrorsList of the first card of stack revErrorDisplay. You could edit those, but you'd need to do

Re: language syntax question

2014-11-19 Thread Michael Doub
Thanks Scott. Of course now that I see the answer, it is obvious. Regards, Mike On 11/19/14 2:28 PM, Scott Rossi wrote: See if this works for you: on mouseUp put something(long ID of field 1,2) end mouseUp function something obj, pl return the formattedRect of line pl of

Re: Stripping Returns

2014-11-19 Thread JB
Thank you for the reply and info. I was wondering about limits in variables and and the info everyone provided helps me a lot. John Balgenorth On Nov 19, 2014, at 11:46 AM, Jerry Jensen j...@jhj.com wrote: A couple more points: The space ending the 1234567890 does wrap the line, but does

Re: Whats the proper way to show a help field?

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 1:18 PM, William Prothero wrote: Ok, let me see if I’ve got it. on mouseMove put myText into toolTip —?? i.e. how do I get text that depends on the mouseLoc, into the tooltip contents? set the tooltip of me to the mouseLoc end mouseMove The mousemove message

Re: Calculate number of rows in a DataGrid

2014-11-19 Thread Terence Heaford
On 19 Nov 2014, at 19:38, Trevor DeVore li...@mangomultimedia.com wrote: Ah, so you want to know how many rows could be drawn in the visible area of the data grid. This should work: put the dgWorkingRect of group MyDataGrid into theVisibleRect put item 4 of theVisibleRect - item 2 of

Re: Stripping Returns

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 10:54 AM, dunb...@aol.com wrote: The text is truncated, not simply not displayed: on mouseUp put 1234567890 into temp repeat 1 put temp after accum end repeat put accum into fld 1 -- 110,000 chars answer the length of fld 1 end mouseUp You get

Re: OAuth 1.1

2014-11-19 Thread David Bovill
Yes that would be great - in fact an oAuth 1.1 library on github would be better? On Thu Oct 10 2013 at 12:55:21 PM Ben Rubinstein benr...@cogapp.com wrote: On 23/08/2013 23:21, J. Landman Gay wrote: On 8/23/13 2:51 PM, Ralph DiMola wrote: I'm going to be using http rest application

Re: language syntax question

2014-11-19 Thread Michael Doub
Thanks Sean, How would I go about saving the reference for use later? I am trying to pass in a buffer address to a library driver routine for a serial port. You must keep a read posted until data arrives. The allert the caller thru a callback. in a cardscript: local buffer On mouseup

Re: language syntax question

2014-11-19 Thread Peter Haworth
I've run into the first issue many times. It seems that if the property you are trying to get is a not a valid property of the referenced container, then all works fine. If it is a valid property, then what you get is that property of the container. So in your example: Function something obj

Re: Stripping Returns

2014-11-19 Thread JB
More info that is good to know. Thanks again. John Balgenorth On Nov 19, 2014, at 12:14 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 11/19/2014, 10:54 AM, dunb...@aol.com wrote: The text is truncated, not simply not displayed: on mouseUp put 1234567890 into temp

Re: Stripping Returns

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 2:14 PM, J. Landman Gay wrote: The text is truncated, not simply not displayed: Mystery solved. I was testing in LC 7.0: http://quality.runrev.com/show_bug.cgi?id=13508 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: language syntax question

2014-11-19 Thread Michael Doub
Here is the syntax that works. thanks goes to Scott Rossi get word 1 of line 1 of (text of obj) On 11/19/14 3:23 PM, Peter Haworth wrote: I've run into the first issue many times. It seems that if the property you are trying to get is a not a valid property of the referenced container, then

Re: language syntax question

2014-11-19 Thread Sean Cole (Pi)
On 19 November 2014 20:14, Michael Doub miked...@gmail.com wrote: local savebuf, savedcallback, savedobj On initialize_read @buf, obj put (the address of buf) into savebuf -- How do I do this? put obj into savedobj open file serialport end initialize_read It depends on

Re: Stripping Returns

2014-11-19 Thread Jerry Jensen
On Nov 19, 2014, at 12:14 PM, J. Landman Gay jac...@hyperactivesw.com wrote: Curiosity made me test: on setup repeat until len(tStr) 66000 put any word of the colornames space after tStr end repeat put last word of tStr -- for reference later put tStr into fld 1 end setup

Re: Stripping Returns

2014-11-19 Thread Jerry Jensen
On Nov 19, 2014, at 12:32 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 11/19/2014, 2:14 PM, J. Landman Gay wrote: The text is truncated, not simply not displayed: Mystery solved. I was testing in LC 7.0: http://quality.runrev.com/show_bug.cgi?id=13508 And I was testing using LC

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread Alejandro Tejada
J. Landman Gay wrote The error descriptions are stored in the cErrorsList of the first card of stack revErrorDisplay. You could edit those, but you'd need to do it again for each new LiveCode version. Many Thanks, Jacque! I wrote in the message box: put the cErrorsList of card 1 of stack

Re: Stripping Returns

2014-11-19 Thread dunbarx
Jerry. The variable accum had a length of 110K, the field truncated that to 65-odd K, the reload just reflected what was in the field. Craig -Original Message- From: Jerry Jensen j...@jhj.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Nov 19, 2014 3:43 pm

Re: Stripping Returns

2014-11-19 Thread Jerry Jensen
Right. That was what I was trying to show. Jacque got different results because she was using LC 7, as we now know. LC7 extended the limit to just under 2^32. I was using LC 6.7 with its limit of just under 2^16. All is well. .Jerry On Nov 19, 2014, at 1:10 PM, dunb...@aol.com wrote: Jerry.

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread Richmond
You can set up a stack called, for instance ERRORS with a field called ERRS and a button with this script: on mouseUp put the cErrorsList of card 1 of stack revErrorDisplay into fld ERRS of stack ERRORS end mouseUp what is interesting is that the resulting list contains quite a few empty

Re: Whats the proper way to show a help field?

2014-11-19 Thread dunbarx
Two things. First, jacque makes a point, in that even with a toolTipDelay of 1 the toolTip itself is jittery. I guess it is really a note gizmo that in intended to tell you something while the mouse hovers over an object, and does not move overmuch. A field that tracks the mouseLoc is really

Javascript on mobile

2014-11-19 Thread David Bovill
Is it not possible to execute Javascript in a mobile browser? I thought I remembered it in one of the release notes? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: OAuth 1.1

2014-11-19 Thread Mike Doub
Please do post it as I have been looking for this as well Thanks, Mike On Wednesday, November 19, 2014, David Bovill david.bov...@gmail.com wrote: Yes that would be great - in fact an oAuth 1.1 library on github would be better? On Thu Oct 10 2013 at 12:55:21 PM Ben Rubinstein

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 2:47 PM, Alejandro Tejada wrote: After my current headache dissapears, I will study how these error messages could trigger another stack with Custom notes and warnings. The easiest way is to write an errorDialog handler and trap the error that way. You'd need the handler in

Re: Meaningful and verbose error messages in LiveCode

2014-11-19 Thread J. Landman Gay
On 11/19/2014, 3:17 PM, Richmond wrote: HOWEVER, when I tried this: put fld ERRS of stack ERRORS into cErrorsList of card 1 of stack revErrorDisplay Well, you can't put anything into a custom property, those have to be set. And you need the: set the cErrorsList of cd 1 of... put the

Re: Whats the proper way to show a help field?

2014-11-19 Thread Alejandro Tejada
dunbarx wrote [snip] A field that tracks the mouseLoc is really much nicer, since many mouseMove messages are sent in a short time while the cursor is on the march. Can you do that? make it appear and disappear, and track? The toolTip handles that automatically, but is not as

Re: Running Apache Under Yosemite

2014-11-19 Thread Gregory Lypny
Thanks, Peter, Mark, Richard, and all for your good suggestions regarding Apache on Yosemite. Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

RE: sendmail through On-Rev server

2014-11-19 Thread Ralph DiMola
Has anyone got this script to work on diesel? The server script just seems to crash. No statements after the mail are executed. The return data is empty from the web service. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From:

Re: Whats the proper way to show a help field?

2014-11-19 Thread William Prothero
Thanks for the info, folks. Frankly, the field method seems better to me. I’ll use the “on mouse move x,y” method. I’ve already got it implemented, except that I was putting all of the action inside a repeat while loop, which was causing recursion limit problems occasionally. But, since the

Re: Javascript on mobile

2014-11-19 Thread ha...@exformedia.se
It is! I’ve done it several times. What is it that is not working? :-Håkan 19 nov 2014 kl. 22:50 skrev David Bovill david.bov...@gmail.com: Is it not possible to execute Javascript in a mobile browser? I thought I remembered it in one of the release notes?