Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Chipp Walters
Thanks Dick. And Ken. Very Much appreciated! On Sat, Jul 9, 2011 at 2:08 PM, Dick Kriesel wrote: > > On Jul 9, 2011, at 7:57 AM, Chipp Walters wrote: > > > Hmmm. Not sure that works. > > > Hi, Chipp. I was thinking your code fragment had come from a *command*. > If it had, then I think my code

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Dick Kriesel
On Jul 9, 2011, at 7:57 AM, Chipp Walters wrote: > Hmmm. Not sure that works. Hi, Chipp. I was thinking your code fragment had come from a *command*. If it had, then I think my code fragment would've been equivalent to yours. In a *function*, you could do it like this: send "initMe" && ch

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Ken Ray
That's because "the params" includes the original function call as well... try: if the paramcount = 0 then send "initMe" to tObj else get matchText(the params,".*?\((.*?)\)",tParams) send "initMe" && tParams to tObj end if That should work... On Jul 9, 2011, at 9:57 AM, Chi

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Chipp Walters
Hmmm. Not sure that works. Create a button with script: *on* mouseUp *get* test("param 1","param 2") *put* it *end* mouseUp *function* test *return* word 2 to -1 of the params *end* test returns: 1","param 2") On Sat, Jul 9, 2011 at 3:59 AM, Dick Kriesel wrote: > On

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Dick Kriesel
On Jul 9, 2011, at 1:20 AM, Chipp Walters wrote: > Here's one for you, Dick.. > In the above mentioned stack there's this part of a script, which is used to > pass the function params onto a handler: > > *if* the paramcount = 0 *then* > > *send* "initMe" to tObj > > *else* > >

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Chipp Walters
Here's one for you, Dick.. In the above mentioned stack there's this part of a script, which is used to pass the function params onto a handler: *if* the paramcount = 0 *then* *send* "initMe" to tObj *else* *repeat* with x=1 to the paramcount *put* "param(" &x& "),

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-09 Thread Dick Kriesel
As an example, suppose your function takes a default color. on mouseUp local tString = "green" set the backcolor of grc "test" to value("altAnswerColor(tString)",long id of stack "altAnswerColor") -- or equivalently: set the backcolor of grc "test" to value("altAnswerColor(" & quote & "g

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-08 Thread Chipp Walters
I updated the sheet stack to make it more usable and posted it at a different URL. Now, it's streamlined and does some rather nice things. First off, it does a nice sheet "scroll down" animation, plus it adds a transparent bg button which won't allow for clicks outside the sheet (and of course del

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-08 Thread Chipp Walters
Cool, Dick! How would one pass quoted vars to that thing? On Sat, Jul 9, 2011 at 12:54 AM, Dick Kriesel wrote: > On Jul 8, 2011, at 4:17 PM, Chipp Walters wrote: > > > on mouseUp > > start using stack "altAnswerColor" > > get altAnswerColor() > > set the backcolor of grc "test" to it > >

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-08 Thread Dick Kriesel
On Jul 8, 2011, at 4:17 PM, Chipp Walters wrote: > on mouseUp > start using stack "altAnswerColor" > get altAnswerColor() > set the backcolor of grc "test" to it > stop using stack "altAnswerColor" > end mouseUp > > Sure, two extra lines, Want to use fewer lines, Chipp? How about this?

Re: Using groups as custom dialogs: a solution for Mac, PC and iOS

2011-07-08 Thread J. Landman Gay
On 7/8/11 6:17 PM, Chipp Walters wrote: When altChooseThink() sees... I need that one. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing l