Re: sending focus to next field

2012-06-18 Thread J. Landman Gay
On 6/18/12 2:02 PM, Richmond wrote: On 06/18/2012 09:42 PM, J. Landman Gay wrote: On 6/18/12 1:09 PM, Richmond wrote: Tried this and had NO JOY: on mouseUp put the id of the focusedObject into fOB repeat until control id fOB is a field put (fOB + 1) into fOB end repeat focus on fld i

Re: sending focus to next field

2012-06-18 Thread Peter Haworth
The first word of the abbrev name of the control tells you what type of control it is. Pete lcSQL Software On Mon, Jun 18, 2012 at 12:02 PM, Richmond wrote: > How does one differentiate between control types? ___ use-livecode ma

Re: sending focus to next field

2012-06-18 Thread Bob Sneidar
Also it seems to me that loop will either blow up when it hits on a control id that doesn't exist, or else it will repeat forever when it exceeds the highest control id of the objects on the card. Not sure which, sorry. Bob On Jun 18, 2012, at 11:42 AM, J. Landman Gay wrote: > On 6/18/12 1:0

Re: sending focus to next field

2012-06-18 Thread Bob Sneidar
Whoops! Of course I meant their layer property. Bob On Jun 18, 2012, at 11:09 AM, Richmond wrote: >> This has the added advantage of being able to run a "tab order" procedure to >> change the tab order of objects without changing their ID's. ___ u

Re: sending focus to next field

2012-06-18 Thread Richmond
On 06/18/2012 09:42 PM, J. Landman Gay wrote: On 6/18/12 1:09 PM, Richmond wrote: Tried this and had NO JOY: on mouseUp put the id of the focusedObject into fOB repeat until control id fOB is a field put (fOB + 1) into fOB end repeat focus on fld id fOB on mouseUp the 'repeat' line "

Re: sending focus to next field

2012-06-18 Thread J. Landman Gay
On 6/18/12 1:09 PM, Richmond wrote: Tried this and had NO JOY: on mouseUp put the id of the focusedObject into fOB repeat until control id fOB is a field put (fOB + 1) into fOB end repeat focus on fld id fOB on mouseUp the 'repeat' line "threw a bluey" (is: bad validation type) repla

Re: sending focus to next field

2012-06-18 Thread Richmond
On 06/18/2012 08:38 PM, Bob Sneidar wrote: Works great so long as you only have fields, but sooner or later it is going to focus on your button. What I have done is on openCard I build a list of fields whose names match a criteria, such as starting with "fld" whose locktext is false. I save it

Re: sending focus to next field

2012-06-18 Thread Bob Sneidar
Works great so long as you only have fields, but sooner or later it is going to focus on your button. What I have done is on openCard I build a list of fields whose names match a criteria, such as starting with "fld" whose locktext is false. I save it in a property. When I want to set the focu

Re: sending focus to next field

2012-06-17 Thread Kay C Lan
Sorry, this: put the number of flds of this stack into tMax should have read: put the number of flds of this CARD into tMax I have become too accustomed to using single card stacks. On Mon, Jun 18, 2012 at 9:07 AM, Kay C Lan wrote: > This should get you headed in the right direction > > In n

Re: sending focus to next field

2012-06-17 Thread Kay C Lan
This should get you headed in the right direction In normal fields: on closeField goNextUseableField the number of me end closeField on exitField goNextUseableField the number of me end exitField In the Card Script: (watch for line wraps) on goNextUseableField pNum put the number of f

Re: sending focus to next field

2012-06-17 Thread J. Landman Gay
On 6/17/12 10:15 AM, Dr. Hawkins wrote: On Sun, Jun 17, 2012 at 8:06 AM, Mark Schonewille wrote: on closefield focus on fld x end closefield The catch, though, is that I don't necessarily know what fld X is at the time I write--fields get hidden and unhidden depending upon context. This is

Re: sending focus to next field

2012-06-17 Thread Dr. Hawkins
On Sun, Jun 17, 2012 at 10:05 AM, Peter Haworth wrote: > Since you already have already have code to hide/reveal fields depending on > context, isn't it possible to detrrmine which field needs to have focus in > that same logic and use  a "focus on field x" command? If I went to a good-sized loop

Re: sending focus to next field

2012-06-17 Thread Peter Haworth
Since you already have already have code to hide/reveal fields depending on context, isn't it possible to detrrmine which field needs to have focus in that same logic and use a "focus on field x" command? Pete lcSQL Software On Sun, Jun 17, 2012 at 8:58 AM, Dr. Hawkins w

Re: sending focus to next field

2012-06-17 Thread Dr. Hawkins
On Sun, Jun 17, 2012 at 8:15 AM, Dr. Hawkins wrote: > The catch, though, is that I don't necessarily know what fld X is at > the time I write--fields get hidden and unhidden depending upon > context.  This is why I'd like to have a tab sent somewhere (I liked > the "send tab to me in 1" approach,

Re: sending focus to next field

2012-06-17 Thread Dr. Hawkins
On Sun, Jun 17, 2012 at 8:06 AM, Mark Schonewille wrote: > on closefield >  focus on fld x > end closefield The catch, though, is that I don't necessarily know what fld X is at the time I write--fields get hidden and unhidden depending upon context. This is why I'd like to have a tab sent somewh

Re: sending focus to next field

2012-06-17 Thread Mark Schonewille
Hi, on closefield focus on fld x end closefield on exitfield closefield end exitfield -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 16 jun

Re: sending focus to next field

2012-06-17 Thread Dr. Hawkins
On Sun, Jun 17, 2012 at 7:07 AM, Richmond wrote: > Tried this and had NO JOY: > > > on mouseUp >  put the id of the focusedObject into fOB > repeat until control id fOB is a field > >  put (fOB + 1) into fOB > end repeat > >  focus on fld id fOB > on mouseUp was this an "end" > > the 'repeat' li

Re: sending focus to next field

2012-06-17 Thread Dr. Hawkins
On Sat, Jun 16, 2012 at 1:02 PM, Richmond wrote: > I have just made a merry little stack with 3 fields all in a row. > > And a button containing this script: > > on mouseUp >  put the id of the focusedObject into fOB >  put (fOB + 1) into fOB >  focus on fld id fOB > on mouseUp > > and, oddly enou

Re: sending focus to next field

2012-06-17 Thread Richmond
On 06/16/2012 11:02 PM, Richmond wrote: On 06/16/2012 10:49 PM, Dr. Hawkins wrote: OK, today's kindergarten question, to which I think I knew the answer once upon a time (but then, i thought that I used to use "send some message to every field in this card" . . .). I want to be able to leave a

Re: sending focus to next field

2012-06-16 Thread Richmond
On 06/16/2012 10:49 PM, Dr. Hawkins wrote: OK, today's kindergarten question, to which I think I knew the answer once upon a time (but then, i thought that I used to use "send some message to every field in this card" . . .). I want to be able to leave a field and focus to the next field, just a

sending focus to next field

2012-06-16 Thread Dr. Hawkins
OK, today's kindergarten question, to which I think I knew the answer once upon a time (but then, i thought that I used to use "send some message to every field in this card" . . .). I want to be able to leave a field and focus to the next field, just as if tab were hit, from within a script. I'v