Re: Functions (was: Re: horizontal and vertical scrolling)

2011-06-17 Thread Bob Sneidar
I finally understand what the heck "passing by reference" means and what it does and why. Thank you. Bob On Jun 16, 2011, at 6:36 PM, Richard Gaskin wrote: > Pete wrote: > >> Probably worth mentioning the "@" syntax for a command handler parameter. >> >> If you have a handler: >> >> comman

Re: Functions (was: Re: horizontal and vertical scrolling)

2011-06-16 Thread Richard Gaskin
Pete wrote: Probably worth mentioning the "@" syntax for a command handler parameter. If you have a handler: command foo parm1, at parm2 --do stuff that puts a new value into parm2 end foo .. then you call it: foo tlocal1,tlocal2 ... tlocal2 will contain the new value put into it after foo

Re: Functions (was: Re: horizontal and vertical scrolling)

2011-06-16 Thread Pete
Probably worth mentioning the "@" syntax for a command handler parameter. If you have a handler: command foo parm1,@parm2 --do stuff that puts a new value into parm2 end foo .. then you call it: foo tlocal1,tlocal2 ... tlocal2 will contain the new value put into it after foo has processed it.

Re: Functions (was: Re: horizontal and vertical scrolling)

2011-06-16 Thread Ken Ray
> If anyone wants to provide some rules of thumb for when you use a > function and when you don't, that might be interesting. In general I use functions when the main point is to process something and return a value, and I use command handlers when I want to "do" something that may or may not ret

Re: horizontal and vertical scrolling

2011-06-16 Thread Timothy Miller
>From the documentation: > The vScroll of a field, group, or stack is a non-negative integer. > > By default, the vScroll property of newly created objects is set to zero. > > For stacks, the vScroll property is read-only and cannot be set. This might have changed -- not sure when. I dimly reca

Re: horizontal and vertical scrolling

2011-06-16 Thread Mark Wieder
Richmond- Lftor. and Ehcuot. -- -Mark Wieder mwie...@ahsoftware.net ___ 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/mailma

Re: horizontal and vertical scrolling

2011-06-16 Thread Björnke von Gierke
can you show how to set the scroll of a stack, and make objects move about by that? because I tried and it didn't work with: set the scroll of this stack to 200 set the scroll of this stack to -20 set the vscroll of this stack to 200 set the hscroll of this stack to 200 getting works tho, as per

OT Re: horizontal and vertical scrolling

2011-06-16 Thread Joe Lewis Wilkins
As with all things "visual" there is a handedness that is gender based; the reason that Classical Architecture is almost always symmetrical. That's the way you build things if you want both genders to "see" things in exactly the same way. I have been told that about 90% of males read from left t

Re: horizontal and vertical scrolling

2011-06-16 Thread Timothy Miller
Ask a silly question... Tim Miller On Jun 16, 2011, at 11:03 AM, Peter Brigham MD wrote: > But when we finally make contact with another intelligent species, will we > discover that all their cards are right-handed? (It goes with out saying that > such a species will necessarily be using Live

Re: horizontal and vertical scrolling

2011-06-16 Thread J. Landman Gay
On 6/16/11 8:31 AM, Richard Gaskin wrote: When I try these: put the scroll of this cd set the scroll of this cd to 100 ...I get "object does not have that property" and "can't set that property", respectively. Oops. I misspoke, sorry. Stacks have a scroll property, and that's what needs to b

Re: horizontal and vertical scrolling

2011-06-16 Thread Peter Brigham MD
I'm a nerd and proud of it. My daughter once got me a button that read "I was cool before uncool was cool." (Actually, before all that I really was cool. But never to my daughter...) -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jun 16, 2011, at 2:49 PM, Richmon

Re: horizontal and vertical scrolling

2011-06-16 Thread Keith Clarke
...that's exactly what the brain in the vat next to me on the shelf was saying just the other day...well, I say 'me'... On 16 Jun 2011, at 19:43, Bob Sneidar wrote: > You all realize how completely odd this line of humor would seem to someone > who was not a nerd erm excuse me, a Profession

Re: horizontal and vertical scrolling

2011-06-16 Thread Richmond Mathewson
On 06/16/2011 09:43 PM, Bob Sneidar wrote: You all realize how completely odd this line of humor would seem to someone who was not a nerd erm excuse me, a Professional Software Developer? Umm; well, nobody around these parts would admit to being a nerd would they? I have yet to become a P

Re: horizontal and vertical scrolling

2011-06-16 Thread Bob Sneidar
You all realize how completely odd this line of humor would seem to someone who was not a nerd erm excuse me, a Professional Software Developer? Bob On Jun 16, 2011, at 11:13 AM, Keith Clarke wrote: > ...sure they'd use LiveCode but it's ridiculous to just blindly assume that > they'd hav

Re: horizontal and vertical scrolling

2011-06-16 Thread Keith Clarke
...sure they'd use LiveCode but it's ridiculous to just blindly assume that they'd have hands! ;-) Best, Keith.. On 16 Jun 2011, at 19:03, Peter Brigham MD wrote: > But when we finally make contact with another intelligent species, will we > discover that all their cards are right-handed? (It g

Re: horizontal and vertical scrolling

2011-06-16 Thread Richmond Mathewson
On 06/16/2011 09:03 PM, Peter Brigham MD wrote: But when we finally make contact with another intelligent species, will we discover that all their cards are right-handed? (It goes with out saying that such a species will necessarily be using LiveCode.) If so, then importing any of their cards

Re: horizontal and vertical scrolling

2011-06-16 Thread Peter Brigham MD
But when we finally make contact with another intelligent species, will we discover that all their cards are right-handed? (It goes with out saying that such a species will necessarily be using LiveCode.) If so, then importing any of their cards might result in the stack disappearing in a flash

Re: horizontal and vertical scrolling

2011-06-16 Thread Bob Sneidar
So you think that card creation would be racemic in nature? As many left handed cards as right handed? But surely someone would soon come up with a plugin that ensured an optically pure creation of new cards. Then we would be back to where we are now, purely left handed cards, as it should be.

Re: horizontal and vertical scrolling

2011-06-16 Thread Richard Gaskin
Timothy Miller wrote: > Is there any rational reason that native scrollbars can be enabled > for fields and groups but not for cards or stacks? Okay, I'll give it a try, more seriously this time: As I alluded to in a lighthearted way, scrolling a card by itself isn't something that can be appa

Re: horizontal and vertical scrolling

2011-06-16 Thread Richard Gaskin
J. Landman Gay wrote: On 6/15/11 11:44 PM, Richard Gaskin wrote: Thomas McGrath III wrote: Although, I suppose if you could group a card then you could scroll a card. Actually, I believe empty cards do scroll. ;) Cute. :P But for Tim: you can in fact scroll a card. Cards have a scroll p

Re: horizontal and vertical scrolling

2011-06-15 Thread Keith Clarke
...a kind of quantum scrolling/fixed duality inherent in cards, so we can know it's state by inserting an object - Shrödinger's card? But then 50% of cards would be created with a scrollbar - unless of course, these are all non-local, sitting in the anti-stack that can't be accessed because it'

Re: horizontal and vertical scrolling

2011-06-15 Thread J. Landman Gay
On 6/15/11 11:44 PM, Richard Gaskin wrote: Thomas McGrath III wrote: Although, I suppose if you could group a card then you could scroll a card. Actually, I believe empty cards do scroll. ;) Cute. :P But for Tim: you can in fact scroll a card. Cards have a scroll property. Just make the

Re: horizontal and vertical scrolling

2011-06-15 Thread Richard Gaskin
Thomas McGrath III wrote: > Although, I suppose if you could group a card then you could scroll a card. Actually, I believe empty cards do scroll. ;) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.

Functions (was: Re: horizontal and vertical scrolling)

2011-06-15 Thread J. Landman Gay
On 6/15/11 6:58 PM, Timothy Miller wrote: Hi Jacque, We may as well let everyone else in on this, someone may have something to add. And I don't think you embarrassed either of us. I mean, we weren't posting our underwear to Facebook or anything. :) For the peanut gallery: we were talking i

Re: horizontal and vertical scrolling

2011-06-15 Thread Thomas McGrath III
Although, I suppose if you could group a card then you could scroll a card. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Jun 15, 2011, at 11:43 PM, Richard Gaskin wrote: > Timothy Miller wrote: >> Is there any rational reason that native scrollbars can be >> enabled fo

Re: horizontal and vertical scrolling

2011-06-15 Thread Richard Gaskin
Timothy Miller wrote: > Is there any rational reason that native scrollbars can be > enabled for fields and groups but not for cards or stacks? What is there to scroll in an empty window? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine

Re: horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Oopsie! I meant this to be a back-channel message to Jacque. Fortunately, I don't think I embarrassed myself or Jacque. Sorry for the inconvenience. Tim On Jun 15, 2011, at 4:58 PM, Timothy Miller wrote: > Hi Jacque, > > Thanks very much. I understand the arithmetic in your function. You jus

Re: horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Hi Bob, I think I understand your arguments. I'm not convinced, though. If you had a complicated nest of scrolling fields, scrolling cards, scrolling backgrounds and a scrolling stack, you'd really have a mess. Inexperienced authors (are they still called "authors"?) would have to be warned aga

Re: horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Hi Jacque, Thanks very much. I understand the arithmetic in your function. You just made my life a little easier, as you have several times before. If I understand your article on functions correctly, a handler or a script can do anything a function can do. However, scripts containing functions

Re: horizontal and vertical scrolling

2011-06-15 Thread Bob Sneidar
I think there is. You can see how certain kinds of fields would need to scroll, where other fields do not. Fields are more akin to windows than any other LC object. I suppose you could think of a card that way, but the card and stack of cards allegory lends itself to some fixed size. If the whol

horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Hi, I never thought about it before, but now I'm wondering. Is there any rational reason that native scrollbars can be enabled for fields and groups but not for cards or stacks? Cheers, Tim ___ use-livecode mailing list use-livecode@lists.runrev.co