Re: varargs best practice?

2010-12-07 Thread Jan Schenkel
--- On Mon, 12/6/10, Mark Wieder wrote: > All- > > Does anyone have ideas on a best practice for handling > variable > numbers of parameters (as in C varargs)? I have two > functions and I'd > like to pass a variable number of parameters (probably no > more than > six) to the first function and h

Re: varargs best practice?

2010-12-07 Thread Mark Wieder
Jan- Thanks. Arrays were the ugly thing I was about to dive into. I'm impressed that you found something even uglier . -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscr

Re: PDF ?

2010-12-07 Thread Jan Schenkel
--- On Sun, 12/5/10, Anthony Howe wrote: > Thanks Jan, > > Great to hear the detail around this one. The feature you > mention that you're working on is actually all that we would > require and sounds ideal! > > We simply want to 'stamp' an existing document with a > customers unique ID and deta

Re: varargs best practice?

2010-12-07 Thread Jan Schenkel
--- On Tue, 12/7/10, Mark Wieder wrote: > Jan- > > Thanks. Arrays were the ugly thing I was about to dive > into. I'm > impressed that you found something even uglier . > > -- > -Mark Wieder > mwie...@ahsoftware.net > You should see the first iteration of each user interface that I concoct -

Re: varargs best practice?

2010-12-07 Thread Malte Brill
mark, Is this any help? function doCommand local tValue,tParam,tVerb repeat with i=1 to paramcount() if ihttp://lists.runrev.com/mailman/listinfo/use-livecode

Re: 4.5.2 and iOS Deployment launched

2010-12-07 Thread René Micout
How can I update LiveCode 4.5.2 from 4.5.1 ? Account system is incomprehensible for me... Thank you for help. Rene(é) Le 6 déc. 2010 à 20:31, Kevin Miller a écrit : > Hi folks, > > 4.5.2 is now available. And LiveCode for iOS is now available! > > To download them, please log into your account.

Re: LiveCode and facebook

2010-12-07 Thread Benjamin Beaumont
Hi Harald, Thanks for your post. It sounds like you've solved a problem that would interest quite a number of others in the community. If you would like to share your code then you can do with every other LiveCode user by uploading it to revOnline. It's the 4th button from the left in the main Liv

Re: 4.5.2 and iOS Deployment launched

2010-12-07 Thread René Micout
Bonjour Giuseppe, On RunRev site > Downloads, I have : - LiveCode Trial > Create account now : I have an account - LiveCode Player > it is not the subject... - Existing Users (someone like me) > log in to your account I log > "LiveCode 4.5.0 Commercial : you have an active renewal pack expires 7th

Re: 4.5.2 and iOS Deployment launched

2010-12-07 Thread René Micout
Thank you Giuseppe, I have download 4.5.2 version > iOS iPhone simulator but not iPad simulator... but... I have 3 accounts !!? for 1 person (me)... 2 commercial without iOS and 1 personal with iOS (!?) Someone else is there in this case ? Someone understands something about that ? Le 7 déc. 2010

Re: varargs best practice?

2010-12-07 Thread Andre Garzia
Mark, I don't know if you solved this but this can be solved with a trick. function getString pVerb repeat with x = 2 to the paramcount put quote & param(x) & quote & comma after tParams end repeat delete char -1 of tParams get the merge of "[[ tCommand ]]([[tParams]])" get ("")

OSC Library

2010-12-07 Thread Thomas McGrath III
Has anyone built a library or worked with OSC (Open Sound Control) from within LC? OSC - http://opensoundcontrol.org/introduction-osc is great for many types of media processing and interactive applications and at present is the best way to control an Arduino board from the iPhone or iPad ( http

Re: Maximize A Stack

2010-12-07 Thread Warren Kuhl
I tried set the rect of stack 'whateverName' to screenRect() Although it maximizes my stack...it cuts everythings from the screen...including my task bar and the top of my stack. It is really weird as I started a new stack with nothing added and try to maximize it and it is only covering half

Re: OSC Library

2010-12-07 Thread René Micout
I am also very interest by that ! Rene(é) Le 7 déc. 2010 à 14:19, Thomas McGrath III a écrit : > Has anyone built a library or worked with OSC (Open Sound Control) from > within LC? OSC - http://opensoundcontrol.org/introduction-osc is great for > many types of media processing and interactive

Re: Maximize A Stack

2010-12-07 Thread Jan Schenkel
--- On Tue, 12/7/10, Warren Kuhl wrote: > I tried > set the rect of stack 'whateverName' to screenRect() > > Although it maximizes my stack...it cuts everythings from > the > screen...including my task bar and the top of my stack. > > It is really weird as I started a new stack with nothing

Re: Maximize A Stack

2010-12-07 Thread Klaus on-rev
Hi all, >> ... > You could try 'the windowBoundingRect' instead of 'the screenRect' - this > should leave room for the dock at least > It is a read-write global property... You can also SET this property! :-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___

Re: iOS pickWheel woes....

2010-12-07 Thread BNig
Jim, try this in the script of the option menu button: local sLabel on mouseUp put sLabel & cr &the label of me into field "AnswerField" end mouseUp on mouseDown put the label of me into sLabel end mouseDown now you could compare

Re: OSC Library

2010-12-07 Thread Mark Wieder
Tom- Tuesday, December 7, 2010, 5:19:34 AM, you wrote: > Has anyone built a library or worked with OSC (Open Sound > Control) from within LC? OSC - I did an OSC library for a similar board a few years ago (the Las Vegas conference period). At one point this was on the old revOnline board - I'll

ListMagic help...

2010-12-07 Thread Glen Bojsza
Hello, I have tried several times to get support from listmagic without success (sent emails to support and Jim directly). Does anyone know the status of their support for the product? thanks, Glen ___ use-livecode mailing list use-livecode@lists.runr

Re: ListMagic help...

2010-12-07 Thread Bill Vlahos
I've received support from Jim usually in a timely fashion. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Dec 7, 2010, at 8:25 AM, Glen Bojsza wrote: > Hello, > > I have tried several t

Re: varargs best practice?

2010-12-07 Thread Bob Sneidar
You could pass a list if the parameters were simple types, or you could pass an array if more complex. Then you would have to get the number of items of the list, or the number of keys of the array, and loop through them. Bob On Dec 6, 2010, at 11:04 PM, Mark Wieder wrote: > All- > > Does a

Re: OSC Library

2010-12-07 Thread Ben Rubinstein
On 07/12/2010 13:19, Thomas McGrath III wrote: Has anyone built a library or worked with OSC (Open Sound Control) from within LC? OSC - http://opensoundcontrol.org/introduction-osc is great for many types of media processing and interactive applications and at present is the best way to contro

Re: iOS pickWheel woes....

2010-12-07 Thread BNig
Hi Jim, I did not get the iphonePick listOfData, curIndex to work. Instead I used a workaround that may or may not suit your needs. Make a list field (you already have that) and overlay that with a option menu button in front of it. set the blendlevel of the option menu button to 100 to make i

Re: OSC Library

2010-12-07 Thread René Micout
Le 7 déc. 2010 à 19:44, Ben Rubinstein a écrit : > I'd also find OSC from LiveCode a very interesting development Could you tell us more informations ? Thank you Rene(é) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: iOS pickWheel woes....

2010-12-07 Thread Jim MacConnell
Bernd, Thanks for the advice. I'll play with work arounds for a bit and appreciate your input. I was also thinking of using your SlotMachine approach though I have to admit I haven't had much luck showing and hiding things on iOs and will have to see how I can do that. You are way ahead of me

Re: OSC Library

2010-12-07 Thread Thomas McGrath III
Mark, This would be a great help. Thanks for looking for it. Tom McGrath III Lazy River Software http://lazyriver.on-rev.com 3mcgr...@comcast.net I Can Speak - Communication for the rest of us... http://mypad.lazyriver.on-rev.com I Can Speak on the iPad Store http://itunes.apple.com/us/app/i-c

Re: OSC Library

2010-12-07 Thread Thomas McGrath III
Ben, I have looked at Mrmr and downloaded touchOSC. They are fairly decent and provide built-in templates with buttons and slider controls. I would think however that LC could be done even better. I envision an editable template with a few controls to choose from and then lay out the screen 'li

Window Positioning

2010-12-07 Thread Peter Haworth
Given that I don't provide any coordinates for the window position when I open a stack, what default position does LC use? My stack windows always seem to open at the same coordinates but each stack window is at a different location. If I drag a stack window to a different location on the

Re: Window Positioning

2010-12-07 Thread Bob Sneidar
I have always found that odd. Most windows remember their position when closed/saved. Rev stack windows do not. Bob On Dec 7, 2010, at 2:59 PM, Peter Haworth wrote: > Given that I don't provide any coordinates for the window position when I > open a stack, what default position does LC use?

Re: iOS pickWheel woes....

2010-12-07 Thread BNig
Jim, I think it is just a question of a short time for Runrev to fix this. The pick is a much cleaner object than the slotmachine. I dont have problems showing/hiding things. At least not in the Simulator. make a button and set its script to: set the visible of field "myField

scroller iPhone with bounce

2010-12-07 Thread BNig
I figured the scroller example in Livecode mobile 4.5.2 was not really complete so I set up the new scroller in a little stack: a list field with a bounce. The bounce was not obvious from the example so I hope this helps people to implement this. (look at the group "umscroll" with lockloc true and

Re: scroller iPhone with bounce

2010-12-07 Thread BNig
You would want to look at the scroller on a real device. The simulator does not scroll. Forgot to mention that in the previous post. regards Bernd BNig wrote: > > I figured the scroller example in Livecode mobile 4.5.2 was not really > complete so I set up the new scroller in a little stack:

Re: Window Positioning

2010-12-07 Thread Björnke von Gierke
stacks save their position and size into themselves when you save them, be it via the save menu or by any other means. Stacks that are a standalone can't save themselves. Other programs use setting files or the registry to save their window size and positioning between launches. Note that the

Re: Window Positioning

2010-12-07 Thread Peter Haworth
OK, I understand. It sounds like I should be specific about the default position where I want each of my windows to appear and then come up with a scheme for the standalone that saves the position of each window when it's closed. I already have a scheme in place to save other settings in

Re: scroller iPhone with bounce

2010-12-07 Thread Terry Judd
Hey Bernd, thanks for this really useful example. Did you mean that the simulator doesn't bounce? because it scrolls just fine if you mouse down and drag. Terry... On 8/12/10 11:11 AM, "BNig" wrote: > > You would want to look at the scroller on a real device. The simulator does > not scroll.

IDE Save

2010-12-07 Thread Peter Haworth
I just came across another instance of a pet peeve of mine. I lost a couple of hours of scripting work because for some reason that isn't clear to me the IDE doesn't always save everything when you exit. It asked me if I wanted to save and I confirmed that I did, yet a bunch of coding cha

Re: Window Positioning

2010-12-07 Thread Joe Lewis Wilkins
Hi Peter, You might want to consider something else at the same time. There is a great deal of flexibility in the real estate that users have available these days. Not just screen size, but also the number of screens. If you do decide to manage the window locations, you may want to have a prefe

Re: Window Positioning

2010-12-07 Thread Terry Judd
Custom properties are good for this sort of thing. Create a stack property named cTL and populate it with the (topLeft) coordinates that you want the stack to initially open with. Then in you preopenstack handler... on preopenstack set the topleft of me to the cTL of me end preopenstack Then

RE: Window Positioning

2010-12-07 Thread Paul D. DeRocco
> From: Peter Haworth > > OK, I understand. It sounds like I should be specific about the > default position where I want each of my windows to appear and then > come up with a scheme for the standalone that saves the position of > each window when it's closed. I already have a scheme in p

Re: Window Positioning

2010-12-07 Thread Peter Haworth
I use cprops a lot but I thought it wasn't possible to store cprop values across runs of a standalone? Pete Haworth On Dec 7, 2010, at 5:22 PM, Terry Judd wrote: Custom properties are good for this sort of thing. Create a stack property named cTL and populate it with the (topLeft) coordinat

Re: IDE Save

2010-12-07 Thread Björnke von Gierke
Yes that is annoying. The problem here is that there's no assured way for the LC engine to know wether a stack has been changed. Sure, the IDE tracks mouse clicks, changed scripts and a few other things. But if for example, you lock messages at the wrong point, then the IDE is unaware, and thi

Re: Window Positioning

2010-12-07 Thread Peter Haworth
Good point. I definitely hadn't thought of the multi-screen possibility. Sounds like maybe I should have a "Remember window positions" preference. If Yes, then windows will always open at their last know position and if No, they'll always open at whatever default location I assign to the

Re: Window Positioning

2010-12-07 Thread Björnke von Gierke
yes, same problem as with the built in window-position saving :) On 8 Dec 2010, at 02:31, Peter Haworth wrote: > I use cprops a lot but I thought it wasn't possible to store cprop values > across runs of a standalone? > > Pete Haworth > > On Dec 7, 2010, at 5:22 PM, Terry Judd wrote: > >> Cus

Re: Window Positioning

2010-12-07 Thread Peter Haworth
Look forward to hearing the answer to that (I'm on a Mac). Pete Haworth On Dec 7, 2010, at 5:26 PM, Paul D. DeRocco wrote: From: Peter Haworth OK, I understand. It sounds like I should be specific about the default position where I want each of my windows to appear and then come up with a sc

Re: IDE Save

2010-12-07 Thread Peter Haworth
I'm not totally sure about this now but I think the circumstances involved using the "Save as Standalone" option. I did that to create a new standalone and got the usual prompt about saving everything so assumed everything had been saved. Only after I ran the standalone and found that the

Re: Window Positioning

2010-12-07 Thread Terry Judd
Yup - forget about all that - I was writing without thinking. Of course window positions are preserved within a 'session' and lost between sessions unless you either (a) store the location externally or (b) the stacks you are opening are independent of the application stack (in which case you can u

preOpenStack - Main stack script affects SubStack when it opens?

2010-12-07 Thread Glen Bojsza
Maybe it's me or should this not be happening. Livecode 4.5.1. I have a mainstack that has a preOpenStack that does some house keeping... I just added a substack that is opened from the mainstack by a user clicking a button. **There is NO preOpenStack in the substack When the substack opens the

preOpenStack and Breakpoints

2010-12-07 Thread Mike Kerner
Unrelated to the other preOpenStack problem reported in 4.5.1 earlier by someone else I have a preOpenStack script with breakpoints in it. But the breakpoints never cause the script editor to come forward. If I put an answer "preOpenStack" line in the script the dialog will come up, but the

Re: preOpenStack - Main stack script affects SubStack when it opens?

2010-12-07 Thread Scott Rossi
If you move the preOpenStack handler to the script of the first card of the mainstack, the substack won't trigger the handler. This is a common method of handling "housekeeping" and other routines that you want run at startup, but don't want triggered by substacks. Regards, Scott Rossi Creati

Re: preOpenStack and Breakpoints

2010-12-07 Thread Mike Kerner
Well, never mind, I guess, I see I reported this bug as 7006 way back in the v. 3 days and it is still listed as "unconfirmed". I also see that now, as then, if I use "breakpoint" instead of a dot breakpoint, things work ok. ___ use-livecode mailing list

Re: preOpenStack - Main stack script affects SubStack when it opens?

2010-12-07 Thread Peter Haworth
I think I've run into that and got round it by checking the name of "this stack" in the preOpenStack handler and only executing the rest of the script if I'm in the mainstack. Actually, come to think about it, that was in a preOpenCard handler for a card in the main stack, not the main sta

Re: preOpenStack - Main stack script affects SubStack when it opens?

2010-12-07 Thread Robert Brenstein
On 07.12.2010 at 19:19 Uhr -0700 Glen Bojsza apparently wrote: When the substack opens the preOpenStack of the mainstack tries to run which generates an error since none of the objects on the mainstack are on the substack. Should preOpenStack only work with the stack that contains it? If this i

Re: preOpenStack and Breakpoints

2010-12-07 Thread Peter Haworth
I can only confirm that I've had the same problem many times, wish I had a solution for it. Makes debugging pretty difficult. Pete Haworth On Dec 7, 2010, at 6:36 PM, Mike Kerner wrote: Unrelated to the other preOpenStack problem reported in 4.5.1 earlier by someone else I have a pre

Re: preOpenStack and Breakpoints

2010-12-07 Thread Mike Kerner
I've reopened my bug report, so hopefully we can get it worked on. ___ 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/listi

Re: preOpenStack and Breakpoints

2010-12-07 Thread Mike Kerner
Peter, I also resubmitted it so the version would be updated. It's bug 9219. As a workaround, instead of using a dot breakpoint, use the 'breakpoint' keyword. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: preOpenStack - Main stack script affects SubStack when it opens?

2010-12-07 Thread Terry Judd
This is normal behaviour. The ways around it are... 1. an empty preopenstack handler in the substack 2. stack specific code in the main stack preopenstack handler on preopenstack if the short name of me = [mainstack name] then do stuff end if end preopenstack 3. move the preopenstack

RE: focus question

2010-12-07 Thread Mark Smith
Walt Brown wrote: > > Done. > Walt, Thanks. Will look and play and let you know what all I learn. Probably on the weekend. -- M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/focus-question-tp3073660p3077700.html Sent from the Revolution - User mailing list

RE: Window Positioning

2010-12-07 Thread Walt Brown
Ken was kind enough to add last position persistence to ssbk and it's subwindows when I presented him with a new multi-screen layout. Not all the components of LC though are so thoughtful. Walt -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@list

Re: preOpenStack and Breakpoints

2010-12-07 Thread Mark Wieder
Peter- Tuesday, December 7, 2010, 6:45:35 PM, you wrote: > I can only confirm that I've had the same problem many times, wish I > had a solution for it. Makes debugging pretty difficult. I should probably point out that PowerDebug handles this (and many other former annoyances) properly. ...a

Re: preOpenStack and Breakpoints

2010-12-07 Thread Peter Haworth
That's a pretty nasty cough you have there Mark! How can I download PowerDebug? The link takes me to a place where I can buy it but the Downloads page just has Powertools (which also looks interesting). Pete Haworth On Dec 7, 2010, at 10:12 PM, Mark Wieder wrote: Peter- Tuesday, Decembe

Re: preOpenStack and Breakpoints

2010-12-07 Thread Mark Wieder
Peter- Tuesday, December 7, 2010, 11:08:46 PM, you wrote: > That's a pretty nasty cough you have there Mark! How can I download > PowerDebug? The link takes me to a place where I can buy it but the > Downloads page just has Powertools (which also looks interesting). There's a somewhat earlier

Re: OSC Library

2010-12-07 Thread Mark Wieder
Tom- The OSC stack is now uploaded to revOnline as MakeBoard. It's a rev controller for the MakeBoard and acts as a demonstration for the libOSC library, which is included as a substack. More than you asked for, I know, but hopefully there's enough there for you to extract what you need. -- -Mar