As per the Dictionary:
set the toolTipDelay to 0 -- no tooltip
HTH
On Sat, Feb 18, 2012 at 12:46 AM, Pete wrote:
> I have some code that sets the tooltip of a control to either some text or
> empty depending on a condition. If the code to set the tooltip to empty is
> executed, the tooltip is
On 02/19/2012 06:53 AM, Geoff Canyon Rev wrote:
http://www.diybookscanner.org/
1000 pages per hour, and as gentle as you can turn the pages.
Really fascinating stuff..now how can I find the free time?
On Wed, Feb 15, 2012 at 11:18 AM, Bob Sneidar wrote:
Someone needs to make a ma
On 2/18/12 11:35 PM, Geoff Canyon Rev wrote:
I turned it off -- no change. Same with the actual border.
I was wondering if the engine counts it regardless of its visibility.
On Sat, Feb 18, 2012 at 11:25 PM, J. Landman Gay
wrote:
Not a clue. Could it be due to the focusborder? We can toggl
On Sun, Feb 19, 2012 at 12:22 PM, Geoff Canyon Rev wrote:
> (and to return hours, so it matches the output of the other
> two).
>
OK, now I see where I was getting confused. I was focused on decimal hours
as per the OP, but you were outputting seconds.
I've tweaked your solution only slightly a
Hi All...
I'm looking to use the Flickr API search routine to return the latest images
for a specific tag. I will probably limit it to the 10 or 20 most recent
images. I can create the resulting URL to the images from the resulting XML,
and set the file name of an image to that URL, looping th
I turned it off -- no change. Same with the actual border.
On Sat, Feb 18, 2012 at 11:25 PM, J. Landman Gay
wrote:
> Not a clue. Could it be due to the focusborder? We can toggle the
> visibility, but the engine may still be counting it whether it is showing
> or not.
>
__
On 2/17/12 11:05 PM, Scott Rossi wrote:
The answer to life may be 42, but my question is: "6?"
The setup: I create a new scrolling field, fill it with a bunch of text, and
drag the scrollbar all the way down, setting the field to its max vertical
scroll. When I compare the formattedHeight of th
On 2/18/12 10:32 PM, Geoff Canyon Rev wrote:
On Sat, Feb 18, 2012 at 9:57 PM, J. Landman Gay
wrote:
function whichOne var,fld1,fld2
-- from a handler by Tony Root
-- Handles a case where you need to return one value if your key is empty,
another if not.
return (item offset(char 1 of (var =
I didn't store the ID because when I wrote it (and for long after that) the
ID was immutable, so there was no need to store it because it couldn't be
set.
That said, I'm guessing that a monolithic XML file is not the way to go
here. Someone who knows git better than I will correct me, but it would
http://www.diybookscanner.org/
1000 pages per hour, and as gentle as you can turn the pages.
On Wed, Feb 15, 2012 at 11:18 AM, Bob Sneidar wrote:
> Someone needs to make a machine something like a cat scanner but that can
> take a 3D image of an entire book so that the pages can be singled out
I just tested with Rev 4.0 -- exact same issue.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
On Sat, Feb 18, 2012 at 9:57 PM, J. Landman Gay
wrote:
> function whichOne var,fld1,fld2
> -- from a handler by Tony Root
> -- Handles a case where you need to return one value if your key is empty,
> another if not.
>
> return (item offset(char 1 of (var = empty),"tf") of quote & fld1 &","&
>
On Fri, Feb 17, 2012 at 7:55 PM, Kay C Lan wrote:
> Guys I thought I'd speed test these.
Given that we're dealing in seconds (and therefore integers), the very
clever itemoffset idea Peter came up with is unnecessary. Here's a
comparison of the three options, with mine tweaked to be similar to
On 2/18/12 7:26 PM, Mark Wieder wrote:
Glad it's working for you. Here's the error it throws in 4.6.4:
Error in system stack:: handler=revOnlineDecodeArray
line=802
char=1
error info= 141,802,22
671,802,7
465,802,1
253,802,1
353,0,0,stack "C:/Program Files/RunRev/LiveCode
4.6.4/Toolset/rev
On 2/18/12 7:41 PM, Peter M. Brigham, MD wrote:
I picked this trick up from someone along the way, on this list I
believe, I've lost track of where it came from, so credit goes to
someone else.
It may be from something I posted to the HyperCard list eons ago. I got
it from Paul Foraker, who wo
That's great. I understand. Sometimes we get a bit too cryptic for our own
good. (smile)
Joe Wilkins
Architect
On Feb 18, 2012, at 7:45 PM, Geoff Canyon Rev wrote:
> This is the entire function definition, with the comment in place:
>
> function roundUp x,i -- rounds x up to the next i
> retu
This is the entire function definition, with the comment in place:
function roundUp x,i -- rounds x up to the next i
return x div i * i + item itemoffset((x mod i > 0),"true,false") of (i,0)
end roundUp
I only included the first line in my original question because it's the
only line with a com
Kind of true Geoff, but the call would have arguments in place of parameters,
whereas
function roundUp x,i isn't the function's definition either. Not intending to
nit-pick.
Joe Wilkins
Architect
On Feb 18, 2012, at 7:01 PM, Geoff Canyon Rev wrote:
> ? That is the definition (and not a call
No Al,
In the early days, even with HC, when most of us were using Assembler, Pascal
and Basic, it was not in the lease uncommon to comment every line of code so we
knew what we were doing; particularly with Assembly language. Of course using C
it was an absolute must; and, if I were working wi
Hi Joe,
Joe Lewis Wilkins wrote
>
> I'm sure that one of the problems that faces most new LC coders
> is that they do too much before they try it out. By the time I have
> something "done" I've already debugged it dozens of times.
> It just works. Of course I don't stretch LC to its limits very
? That is the definition (and not a call).
On Sat, Feb 18, 2012 at 2:24 PM, Joe Lewis Wilkins wrote:
> Certainly better than nothing; but, if you put it in the function
> definition instead of the calls, you only have to do it one time.
>
> Joe Wilkins
>
> On Feb 18, 2012, at 12:04 PM, gcanyon+r
Hi Geoff,
Many Thanks for sharing this gem!
http://www.quickmeme.com/meme/6o9b/
Geoff Canyon Rev wrote
>
> http://www.inspiredlogic.com/mc/ripper.html
> I created mcRipper oh so many years ago. MC = MetaCard
> gives you some idea how long ago. As I recall it handled
> just about everything, but
Hi Robert,
Still trying different things here to see which seems to work best in these
circumstances. I have put a separate label, as you suggest, I think that
works well.
Pete
On Sat, Feb 18, 2012 at 4:20 PM, Robert Brenstein wrote:
> On 18.02.2012 at 13:28 Uhr -0800 Pete apparently wrote:
>
>
Cool. Thanks everyone for your responses, I think I'm good to go.
Marty
Not exactly one line, but this works for all the combinations I could think
of:
function incTo x,i -- increments x to the next i
if i = 0 then
return x
else if x mod i<> 0 and x * i< 0 then
return x
You're forgiven, Peter.
Joe Wilkins
Architect
On Feb 18, 2012, at 5:41 PM, Peter M. Brigham, MD wrote:
> I picked this trick up from someone along the way, on this list I believe,
> I've lost track of where it came from, so credit goes to someone else. You're
> right, Joe, commenting something
I picked this trick up from someone along the way, on this list I believe, I've
lost track of where it came from, so credit goes to someone else. You're right,
Joe, commenting something as opaque as this (at least at first glance) is
advisable, especially when you're sharing code. I can only ple
Alex,
I'm sure that one of the problems that faces most new LC coders is that they do
too much before they try it out. By the time I have something "done" I've
already debugged it dozens of times. It just works. Of course I don't stretch
LC to its limits very often. When I do something, I've do
Not exactly one line, but this works for all the combinations I could think
of:
function incTo x,i -- increments x to the next i
if i = 0 then
return x
else if x mod i <> 0 and x * i < 0 then
return x div i * i
else
return x div i * i + i
end if
end incTo
Here's my t
Jacque-
Saturday, February 18, 2012, 12:48:43 PM, you wrote:
> On 2/18/12 2:07 PM, Mark Wieder wrote:
>> If revOnline ever comes back (hello rev team?)
> I haven't been able to view, log in, or anything else on revOnline for a
> while now. Last night I figured it out. It works normally with Liv
Hi Joe,
Joe Lewis Wilkins wrote
>
> True Ken, but w/o comment it is much more difficult to know what is going
> on.
> If you're going to use one liners like this, you'd better add some
> commentary.
> One of the weaknesses I see in LC coding is the shortage of comments.
> I realize that is a str
On 18.02.2012 at 13:28 Uhr -0800 Pete apparently wrote:
In spite of all that, I share your concerns. Using the autohilite property
was a very easy way out of the original question but perhaps the image
approach might be better and not a lot more work if I use a behavior
script. If I make it loo
Negative numbers aren't a concern. But I also need to round down in the
same fashion (and would bail out at 0).
Thanks guys,
Marty
Hmm, 0 and negatives aren't handled properly either way, starting to think
the proposed loop method might be the easiest method.
On Sat, Feb 18, 2012 at 5:11 PM, J
I didn't follow all of that other thread, but I think it had some
additional complexity. For the straightforward case of adding to the
value until a multiple of 20, you can just do
put 20*( (i+20) div 20) into i
-- Alex (whose old Fortran habits insist on using 'i' as a variable here
:-)
On
I would prefer something that is easily human readable. Xml might work as long
as the scripts and object properties are presented in a clear and readable
enough fashion.
I know that my teams have spent many hours going thru diffs in different
version of software looking to find exactly what r
Ruslan:
As Bernard mentions above Python has classes. From the standpoint of
developers it is a very popular
language. If you believe the Tiobe index it is the fastest growing
language
http://www.infernodevelopment.com/python-becoming-most-popular-programming-language
It has many popular web fra
Hmm, 0 and negatives aren't handled properly either way, starting to think
the proposed loop method might be the easiest method.
On Sat, Feb 18, 2012 at 5:11 PM, Joe Lewis Wilkins wrote:
> IN CASE YOU'RE HAVING TROUBLE WITH IT, TRY THIS:
>
> put ?? into theValue
> repeat with theValue = theValue
IN CASE YOU'RE HAVING TROUBLE WITH IT, TRY THIS:
put ?? into theValue
repeat with theValue = theValue+1 to theValue +100
IF theValue mod 20 = 0 THEN EXIT REPEAT
end repeat
put theValue
Joe Wilkins
On Feb 18, 2012, at 3:55 PM, Joe Lewis Wilkins wrote:
> Hi Marty,
>
> Just create a repeat loop t
Isn't this the same problem that Geoff Canyon just solved with a delightfully
opaque one line solution in a recent thread:
function roundUp x,i -- rounds x up to the next i
return x div i * i + item itemoffset((x mod i > 0),"true,false") of (i,0)
end roundUp
On Feb 18, 2012, at 3:39 PM, Marty K
My way doesn't work for 0 so ignore it and go with Geoff
On Sat, Feb 18, 2012 at 5:06 PM, Ken Corey wrote:
> On 18/02/2012 23:39, Marty Knapp wrote:
>
>> Let's say I have a numeric field and a button to increase the value and
>> a button to decrease the value. When I click the increase button,
On 18/02/2012 23:39, Marty Knapp wrote:
Let's say I have a numeric field and a button to increase the value and
a button to decrease the value. When I click the increase button, I want
it to increase to the next highest value that is evenly divisible by 20.
So if the field has a value of 19, a cl
Hi Marty,
Just create a repeat loop that increases or decreases the value by 1 until it
reaches a value where mod 20 of the value = 0; then exit the loop and your
value will be divisible by 20. I'll let you code this. This would be very fast
and quite simple.
Joe Wilkins
On Feb 18, 2012, at 3
Probably is an easier way but..
if your target number is an even 20, and the current value is 15
put 20 into targetNum
put 15 into curNum
(targetNum - (curNum mod targetNum)) + curNum --should do it.
On Sat, Feb 18, 2012 at 4:39 PM, Marty Knapp wrote:
> Let's say I have a numeric field and a b
Michael-
Saturday, February 18, 2012, 3:16:33 PM, you wrote:
> I've used propietary source code repositories, and I think that
> there is no good argument for them in the small developer shops
> considering the many existing systems out there.
Having rolled my own in the past, I would never go b
Let's say I have a numeric field and a button to increase the value and
a button to decrease the value. When I click the increase button, I want
it to increase to the next highest value that is evenly divisible by 20.
So if the field has a value of 19, a click will set the value to 20. If
the f
Mike-
Saturday, February 18, 2012, 2:43:07 PM, you wrote:
> I think the real intent is to get a livecode application into a
> format where you can use standard configuration management tools to
> store versions and track differences. In theory if the components
> were broken out separately, then
Jose-
Saturday, February 18, 2012, 2:27:05 PM, you wrote:
> If comment or remove write lines, both switch cases work, but still not
> sending
> any output to the console.
> What's wrong?
Windows has its own definition of what "writing to the console" means.
All your output is indeed going to s
Thanks for this interesting thread. In thinking about my question, I
realized that the lack of a LC to script
export, thus limiting the ability to use the many fine source controls out
there is a real no-go for multi
developer teams. Fortunately there is just one of me, so it's not an drop
dead i
Good point Mike. I think the db approach might provide some added benefits
but as you say, standard cvs systems require text to work from. Could get
the best of both worlds by providing the ability to create XML from the
database if there are, in fact, any benefits from using a db.
Pete
On Sat,
PS. That also explains why the repeat loop isn't affected by deleting the
last char - it's not a return so doesn't affect the placement of lines in
the original list.
Pete
On Sat, Feb 18, 2012 at 2:47 PM, Pete wrote:
> I have to say, the issue of returns in lines has always been confusing to
>
I have to say, the issue of returns in lines has always been confusing to
me. I've kinda resolved it by thinking of them as separators rather than
terminators. So if the last line in a list does not have a return, it's
still treated as a line because it's separated from the previous line by
the p
I think the real intent is to get a livecode application into a format where
you can use standard configuration management tools to store versions and track
differences. In theory if the components were broken out separately, then you
could have multiple people working on the same app at the sa
> I did think about the ui aspects of this and all the points you raise.
> The stack in question is very clearly defined in the application as one
> where all the information on it is display only and cannot be changed in
> any way. There are clearly labelled buttons on the stack that are used to
>
Hi,
am testing command line features, following some samples got from list, but
can't get output to the console in Windows. Am installing right now in a Mac to
check if there is any difference.
Tried in this way:
on startup
hide this stack
local tCommandLine
put "using put hello2
Thank you Tim, good to know there's a tried and tested way of doing this.
Pete
On Sat, Feb 18, 2012 at 2:14 PM, Tim Jones wrote:
> I use a Green / Gray 8x8 button to display on or off status where user
> choice is not considered. This has worked well for over 8 years and
> there's never a point
Thanks for the advise Peter. In this case I was just experimenting to see if
the return character was being passed in as part of the line chunk. Using a
repeat in this case was just to test another case of the line construct.
-= Mike
Sent from my BlackBerry device on the Rogers Wireless Ne
On Feb 18, 2012, at 10:57 AM, Michael Doub wrote:
> ...
>
> on mouseUp
> put URL "http://dl.dropbox.com/u/43797494/LiveCode/LoadLinks"; into list
> repeat for each line x in list
> delete the last char of x
> put x into StacktoLoad
> exit repeat
> end repeat
> go URL Stackt
I use a Green / Gray 8x8 button to display on or off status where user choice
is not considered. This has worked well for over 8 years and there's never a
point of confusion on the user's end.
Tim
On Feb 18, 2012, at 10:42 AM, Pete wrote:
> I have a stack which is used to show information in
Thank you for your thoughts, Ken and Ken.
I did think about the ui aspects of this and all the points you raise.
The stack in question is very clearly defined in the application as one
where all the information on it is display only and cannot be changed in
any way. There are clearly labelled bu
Hi Mark,
Thanks for the update. Like several other people, I'm really frustrated by
the non-opertaion of revOnline. I understand that the team has a lot on
their hands right now but the thing has been broken for months as far as I
can tell. Maybe we should open a community Dropbox or Box.net acc
On 18/02/2012 17:42, Pete wrote:
I have a stack which is used to show information in a display only mode,
the user is not allowed to change any of the displayed values. I want to
use checkboxes in some cases. How can I prevent the user clicking the
check box and changing its state?
I've curren
On 2/18/12 2:07 PM, Mark Wieder wrote:
If revOnline ever comes back (hello rev team?)
I haven't been able to view, log in, or anything else on revOnline for a
while now. Last night I figured it out. It works normally with LiveCode
4.x, it breaks completely with LiveCode 5.x.
--
Jacqueline
Technically, I believe Apple claims you're not supposed to access code
externally of your application, so using "go url" in this case runs afoul of
the rules. Breaking the rules could get you removed from the app store.
(But one might argue that loading Web pages with Javascript is loading
extern
http://www.inspiredlogic.com/mc/ripper.html
I created mcRipper oh so many years ago. MC = MetaCard gives you some idea how
long ago. As I recall it handled just about everything, but I haven't touched
it in over ten years. Anyone is free to take a look and laugh at my code.
Sent from my iPad
Certainly better than nothing; but, if you put it in the function definition
instead of the calls, you only have to do it one time.
Joe Wilkins
On Feb 18, 2012, at 12:04 PM, gcanyon+rev wrote:
> I'm curious what you think of this, which is what I try to do regularly when
> I create one-liners
> I've currently got them disabled to achieve this but I'd prefer them to
> have their enabled appearance, just not allow them to be changed. I've
> considered making images of the checkbox in its checked and unchecked
> state, disabling the checkbox and assigning the appropriate image as its
> di
Pete-
Saturday, February 18, 2012, 11:33:51 AM, you wrote:
> I saw a post earlier in this thread that perhaps Mark Wieder might be
> working on something along these lines. Mark, can you comment?
If revOnline ever comes back (hello rev team?) I'll post a stack that
does the translations.
Getti
I'm curious what you think of this, which is what I try to do regularly when I
create one-liners (which I favor).
function roundUp x,i -- rounds x up to the next i
On Feb 18, 2012, at 11:23 AM, Joe Lewis Wilkins wrote:
> If you're going to use one liners like this, you'd better add some comme
I saw a post earlier in this thread that perhaps Mark Wieder might be
working on something along these lines. Mark, can you comment?
Pete
On Sat, Feb 18, 2012 at 10:47 AM, Malte Brill wrote:
> Hi Al,
>
> as of LiveCode version 5 (maybe 4.6.4) this is possible (with the
> limitation of embedded a
Hi Al,
as of LiveCode version 5 (maybe 4.6.4) this is possible (with the limitation of
embedded audioClips and embedded videoClips, as I do not see a way to get the
binary data from them). The engine was changed to allow the setting of IDs for
any control for exactly that reason. Basically now
Hi Marty,
No, you're not missing something, I am!! That works fine, thanks.
Pete
On Sat, Feb 18, 2012 at 9:52 AM, Marty Knapp wrote:
> Pete,
> Maybe I'm missing something, but could you just turn off the auto-hiliting?
>
> Marty K
>
> I have a stack which is used to show information in a displ
Pete,
Maybe I'm missing something, but could you just turn off the auto-hiliting?
Marty K
I have a stack which is used to show information in a display only mode,
the user is not allowed to change any of the displayed values. I want to
use checkboxes in some cases. How can I prevent the user c
I have a stack which is used to show information in a display only mode,
the user is not allowed to change any of the displayed values. I want to
use checkboxes in some cases. How can I prevent the user clicking the
check box and changing its state?
I've currently got them disabled to achieve th
Recently, Michael Chean asked about the possibility
of using svn for version control of livecode stacks.
http://betterexplained.com/articles/a-visual-guide-to-version-control/
But, checking the mail list, I found that many developers
have created code to save stacks as xml.
Now, my question i
True Ken, but w/o comment it is much more difficult to know what is going on.
If you're going to use one liners like this, you'd better add some commentary.
One of the weaknesses I see in LC coding is the shortage of comments. I realize
that is a strong-point of LC; it is "almost" self-commentin
HI Craig,
I'm not sure what I did, but it is now working for me too.
Pete
On Fri, Feb 17, 2012 at 1:06 PM, wrote:
> Pete,
>
>
> I don't see this at all. I set up a simple condition that either sets the
> toolTip of a button to some text or empty. If the condition is met, I get
> the tooltip, If
> function roundUp x
> return trunc(x) + char itemoffset((x mod 1 > 0),"true,false") of "10"
> end roundUp
VERY clever, Peter!
That's a great one-line variant to:
function roundUp x
put trunc(x) into tRetVal
if x mod 1 > 0 then add 1 to tRetVal
return tRetVal
end roundUp
:D
Ken Ray
Son
On Feb 18, 2012, at 9:57 AM, Michael Doub wrote:
>
> Interesting, I did not realize that livecode included the return character as
> part of the line chunk.
> Both of following work as long as you delete the last character. I tested
> this on both 5.5 and
> 5.0.2.
>
> on mouseUp
> put UR
This seems pretty cool!
Am I correct in assuming that if Apple would reject an app that tried to
use this technique in actual app submitted to the app store?
Thanks
Todd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this
On 17/02/2012 07:31, Malte Brill wrote:
So what about source control, any applicability here. Are Diffs possible?
Not easiely. The binary nature of a stack makes this incredibly difficult. It
is possible to write a little plugin that exports all scripts to plain text
and, to a certain exte
Interesting, I did not realize that livecode included the return character as
part of the line chunk.
Both of following work as long as you delete the last character. I tested
this on both 5.5 and
5.0.2.
on mouseUp
put URL "http://dl.dropbox.com/u/43797494/LiveCode/LoadLinks"; into list
There are complex metrics in text fields. Not sure if you get the same
situation in LiveCode as in Flash, but look at this article, see if any of the
values add up to an extra 6:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextLineMetrics.html
__
81 matches
Mail list logo