Re: artificially causing a field to be left in a script

2012-09-25 Thread Terry Judd

On 26/09/2012, at 02:59 PM, 
  wrote:

> Now I see.
> 
> 
> put this into the field script:
> 
> 
> on mouseLeave
>  focus on nothing
> end mouseLeave
> 
> 
> When the field loses focus, it will trigger the "closeField" message.

Or put it in the mouseUp handler of the button, or set the traversalOn of the 
button to true.

Terry...

> 
> 
> Craig Newman
> 
> 
> 
> -Original Message-
> From: Dr. Hawkins 
> To: How to use LiveCode 
> Sent: Wed, Sep 26, 2012 12:39 am
> Subject: Re: artificially causing a field to be left in a script
> 
> 
> On Tue, Sep 25, 2012 at 8:43 PM,   wrote:
>> Sorry, still not getting it. If I change the contents of a field, it matters 
> not what I do next:
>> click a button or the card, navigate to another card via any means open to 
>> me, 
> focus on
>> another field, whatever, the "closeField" message is sent.
> 
> That had been my understanding, but . . .
> 
>> What are you doing, exactly, after the text of the field is changed?
> 
> I change the text of the field, and then click on a button, which runs
> a script, saves data if changed, and loads the next data.
> 
> I just put the script
> 
> on closefield
>   beep
>   breakpoint
>   pass closefield
> end closefield
> 
> to a field, changed contents, and pushed my button.  No beep, and no 
> closefield.
> 
> Then go to it, change something, and tab, and beep & breakpoint.
> 
> into a field, changed it, and clicked the button, and
> 
> -- 
> Richard E. Hawkins, Esq.
> (702) 508-8462
> 
> ___
> 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
> 
> 
> ___
> 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
> 

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne





___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread Peter Haworth
If you're saying the user clicks on a button after changing a field, see
the other concurrent thread going on right now.  closeField doesn't happen
if you change a field's contents and then immediately click on a button.
 The other thread has the workaround.

Pete
lcSQL Software 



On Tue, Sep 25, 2012 at 8:34 PM, Dr. Hawkins  wrote:

> There are nav buttons.  Each datum contains a couple of dozen fields.
> If any change (flag set on exitfield), the datum is dumped to the
> database.
>
___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread dunbarx
Now I see.


put this into the field script:


on mouseLeave
  focus on nothing
end mouseLeave


When the field loses focus, it will trigger the "closeField" message.


Craig Newman



-Original Message-
From: Dr. Hawkins 
To: How to use LiveCode 
Sent: Wed, Sep 26, 2012 12:39 am
Subject: Re: artificially causing a field to be left in a script


On Tue, Sep 25, 2012 at 8:43 PM,   wrote:
> Sorry, still not getting it. If I change the contents of a field, it matters 
not what I do next:
>click a button or the card, navigate to another card via any means open to me, 
focus on
>another field, whatever, the "closeField" message is sent.

That had been my understanding, but . . .

> What are you doing, exactly, after the text of the field is changed?

I change the text of the field, and then click on a button, which runs
a script, saves data if changed, and loads the next data.

I just put the script

on closefield
   beep
   breakpoint
   pass closefield
end closefield

to a field, changed contents, and pushed my button.  No beep, and no closefield.

Then go to it, change something, and tab, and beep & breakpoint.

into a field, changed it, and clicked the button, and

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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

 
___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread Dr. Hawkins
On Tue, Sep 25, 2012 at 8:43 PM,   wrote:
> Sorry, still not getting it. If I change the contents of a field, it matters 
> not what I do next:
>click a button or the card, navigate to another card via any means open to me, 
>focus on
>another field, whatever, the "closeField" message is sent.

That had been my understanding, but . . .

> What are you doing, exactly, after the text of the field is changed?

I change the text of the field, and then click on a button, which runs
a script, saves data if changed, and loads the next data.

I just put the script

on closefield
   beep
   breakpoint
   pass closefield
end closefield

to a field, changed contents, and pushed my button.  No beep, and no closefield.

Then go to it, change something, and tab, and beep & breakpoint.

into a field, changed it, and clicked the button, and

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: Format Accented Characters for URL?

2012-09-25 Thread Scott Rossi
Darn -- maybe I spoke too soon.

It seems that uniEncoding/Decoding works fine on the desktop, but perhaps
doesn't work when run from an irev file?

After getting empty values returned from the server, I tried these simple
tests:
put uniDecode(uniEncode("ABC"),"utf8");exit to top
put uniEncode("ABC");exit to top


In both cases, I get an empty page.

Is there a trick to make uniEncoding work in an irev file?  I found one
thread about uploading text files in the proper format, but I'm not using
any uploaded files, and even the case above with the simple string seems
to be failing.

Thanks for any enlightenment.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 9/25/12 7:54 PM, I wrote:

>Thanks so much Dave -- that seems to work.  I discovered I was also
>encoding a parameter along with the URL which was part of the problem,
>but 
>your routine solved the character issue.
>
>Thanks & Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, UX Design
>
>
>
>
>On 9/25/12 4:26 PM, "Dave Cragg"  wrote:
>
>>
>>On 25 Sep 2012, at 21:29, Scott Rossi  wrote:
>>
>>> Hi List:
>>> 
>>> Wondering if someone has a suggestion for URL character formatting in
>>>LCŠ
>>> 
>>> I'm trying to format a URL string to submit to Google Maps.  The
>>>string 
>>>is a
>>> street address that needs to be delimited using "+".  The complication
>>> arises when an address contains an accented character like ñ (n +
>>>tilde).
>>> If I change the ñ to a roman n, the address is processed, but I
>>>thought 
>>>I
>>> could use something like urlEncode to handle problem characters.
>>
>>Hi Scott
>>
>>I think the + char is an encoded space. That's what LC outputs instead
>>of 
>>the %20 alternative.
>>
>>I'm guessing that strings with characaters such as ñ (n + tilde) need to
>>be in UTF8 format before using url encode.
>>
>>Example:
>>
>>Here's a slightly exotic version of a well-known address:
>>
>>25a Thistlé Street SW Lañe, Edinburgh
>>
>>If we put that into field 1, then run the following:
>>
>>put uniDecode(uniEncode(field 1), "UTF8") into tA
>>put urlencode(tA)
>>
>>it gives: 25a+Thistl%C3%A9+Street+SW+La%C3%B1e%2C+Edinburgh
>>
>>If we try this url in a browser:
>>
>>maps.google.com/maps?q=25a+Thistl%C3%A9+Street+SW+La%C3%B1e%2C+Edinburgh
>>
>>Apologies if any of the above gets rearranged in the mail.
>>
>>Dave
>>___
>>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



___
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

Re: artificially causing a field to be left in a script

2012-09-25 Thread dunbarx
Sorry, still not getting it. If I change the contents of a field, it matters 
not what I do next: click a button or the card, navigate to another card via 
any means open to me, focus on another field, whatever, the "closeField" 
message is sent.


What are you doing, exactly, after the text of the field is changed?


Craig



-Original Message-
From: Dr. Hawkins 
To: How to use LiveCode 
Sent: Tue, Sep 25, 2012 11:35 pm
Subject: Re: artificially causing a field to be left in a script


On Tue, Sep 25, 2012 at 8:20 PM,   wrote:
>
> When you say "clicks to go to the next data", what do you mean?

There are nav buttons.  Each datum contains a couple of dozen fields.
If any change (flag set on exitfield), the datum is dumped to the
database.


> I thought your issue was leaving a field without changing its contents, which 
would >indicate the use of "exitField", whereas "closeField" is sent only when 
the field
>contents have changed.

If someone selects a single field and changes the value, and then
clicks for the next datum, neither closeField nor exitFIeld are
called.  I need to have closefield called if the data has changed,
thus the wish to send a tab to the field.


-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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

 
___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread Dr. Hawkins
On Tue, Sep 25, 2012 at 8:32 PM,   wrote:
> Is this not what you needed?

Not quite--

when the nav button is hit, that script runs before the card is left.

For that matter, the card is never left; I just load new data into the
fields from the database.  It looks to the user like a stack of cars.

(Once upon a time, this program was developed in HyperCard, and I used
the natural method of having multiple cards.  [* now shuddering at the
thought of using a database from HyperCard in the way I'm now doing
this *]

thanks

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread Dr. Hawkins
On Tue, Sep 25, 2012 at 8:20 PM,   wrote:
>
> When you say "clicks to go to the next data", what do you mean?

There are nav buttons.  Each datum contains a couple of dozen fields.
If any change (flag set on exitfield), the datum is dumped to the
database.


> I thought your issue was leaving a field without changing its contents, which 
> would >indicate the use of "exitField", whereas "closeField" is sent only 
> when the field
>contents have changed.

If someone selects a single field and changes the value, and then
clicks for the next datum, neither closeField nor exitFIeld are
called.  I need to have closefield called if the data has changed,
thus the wish to send a tab to the field.


-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread dunbarx
Hi, again.


But if you change the contents of a field, and then leave the card, closeField 
is sent.


I made a field, and put this into its script:


on closeField
  put random(99) && the target
end closeField


I typed into the field, and then left the card (via CMD-3). A number appears in 
the msg box, followed by the field descriptor.


Is this not what you needed?


Craig



-Original Message-
From: Dr. Hawkins 
To: How to use LiveCode 
Sent: Tue, Sep 25, 2012 11:16 pm
Subject: Re: artificially causing a field to be left in a script


On Tue, Sep 25, 2012 at 8:13 PM,   wrote:
> Can't you use "exitField"?

No; that only applies if the field is exited without change--and I
only care about the case where the field has changed, but the card is
left before leaving the field.

When that happens, I want the closefield behavior for that field to happen.


-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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

 

___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread dunbarx
Hi.


I have a nagging feeling I am missing what you want.


When you say "clicks to go to the next data", what do you mean?


I thought your issue was leaving a field without changing its contents, which 
would indicate the use of "exitField", whereas "closeField" is sent only when 
the field contents have changed.


Craig Newman



-Original Message-
From: Dr. Hawkins 
To: How to use LiveCode 
Sent: Tue, Sep 25, 2012 9:47 pm
Subject: artificially causing a field to be left in a script


TO avoid pounding the database, my card full of data fields only saves
data if any has changed.  This is done by closeField setting a flag.

However, if someone changes data in one field, but then clicks to go
on to the next data, closefield is never reached.

If I can send a tab to the field with focus, it would solve the
problem--but what is the "safest" way to do this?

   send tabkey to the focusedObject

?

Or would be dispatch be better then send?

Or am I missing something here (that odd, nagging feeling at the back
of my head . . .)

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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

 

___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread Dr. Hawkins
On Tue, Sep 25, 2012 at 8:13 PM,   wrote:
> Can't you use "exitField"?

No; that only applies if the field is exited without change--and I
only care about the case where the field has changed, but the card is
left before leaving the field.

When that happens, I want the closefield behavior for that field to happen.


-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: artificially causing a field to be left in a script

2012-09-25 Thread dunbarx
Hi.


Can't you use "exitField"?


Craig Newman



-Original Message-
From: Dr. Hawkins 
To: How to use LiveCode 
Sent: Tue, Sep 25, 2012 9:47 pm
Subject: artificially causing a field to be left in a script


TO avoid pounding the database, my card full of data fields only saves
data if any has changed.  This is done by closeField setting a flag.

However, if someone changes data in one field, but then clicks to go
on to the next data, closefield is never reached.

If I can send a tab to the field with focus, it would solve the
problem--but what is the "safest" way to do this?

   send tabkey to the focusedObject

?

Or would be dispatch be better then send?

Or am I missing something here (that odd, nagging feeling at the back
of my head . . .)

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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

 
___
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


The #)(*%& trace is back in 5.2.2!

2012-09-25 Thread Dr. Hawkins
It's happening again:  at a breakpoint, I get a brief pause, and then
it starts moving through code.

This would be useful if it did it when I *TOLD* it to.

The only solution, again, seems to be to quit the IDE.


-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: Format Accented Characters for URL?

2012-09-25 Thread Scott Rossi
Thanks so much Dave -- that seems to work.  I discovered I was also
encoding a parameter along with the URL which was part of the problem, but
your routine solved the character issue.

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 9/25/12 4:26 PM, "Dave Cragg"  wrote:

>
>On 25 Sep 2012, at 21:29, Scott Rossi  wrote:
>
>> Hi List:
>> 
>> Wondering if someone has a suggestion for URL character formatting in
>>LCŠ
>> 
>> I'm trying to format a URL string to submit to Google Maps.  The string
>>is a
>> street address that needs to be delimited using "+".  The complication
>> arises when an address contains an accented character like ñ (n +
>>tilde).
>> If I change the ñ to a roman n, the address is processed, but I thought
>>I
>> could use something like urlEncode to handle problem characters.
>
>Hi Scott
>
>I think the + char is an encoded space. That's what LC outputs instead of
>the %20 alternative.
>
>I'm guessing that strings with characaters such as ñ (n + tilde) need to
>be in UTF8 format before using url encode.
>
>Example:
>
>Here's a slightly exotic version of a well-known address:
>
>25a Thistlé Street SW Lañe, Edinburgh
>
>If we put that into field 1, then run the following:
>
>put uniDecode(uniEncode(field 1), "UTF8") into tA
>put urlencode(tA)
>
>it gives: 25a+Thistl%C3%A9+Street+SW+La%C3%B1e%2C+Edinburgh
>
>If we try this url in a browser:
>
>maps.google.com/maps?q=25a+Thistl%C3%A9+Street+SW+La%C3%B1e%2C+Edinburgh
>
>Apologies if any of the above gets rearranged in the mail.
>
>Dave
>___
>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
>



___
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

Re: Has anybody run into this problem?

2012-09-25 Thread Charles Szasz
Bob,

Thanks! I tried your suggestion and it works fine!

Charles Szasz
csz...@mac.com





___
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


artificially causing a field to be left in a script

2012-09-25 Thread Dr. Hawkins
TO avoid pounding the database, my card full of data fields only saves
data if any has changed.  This is done by closeField setting a flag.

However, if someone changes data in one field, but then clicks to go
on to the next data, closefield is never reached.

If I can send a tab to the field with focus, it would solve the
problem--but what is the "safest" way to do this?

   send tabkey to the focusedObject

?

Or would be dispatch be better then send?

Or am I missing something here (that odd, nagging feeling at the back
of my head . . .)

-- 
Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: Format Accented Characters for URL?

2012-09-25 Thread Dave Cragg

On 25 Sep 2012, at 21:29, Scott Rossi  wrote:

> Hi List:
> 
> Wondering if someone has a suggestion for URL character formatting in LCŠ
> 
> I'm trying to format a URL string to submit to Google Maps.  The string is a
> street address that needs to be delimited using "+".  The complication
> arises when an address contains an accented character like ñ (n + tilde).
> If I change the ñ to a roman n, the address is processed, but I thought I
> could use something like urlEncode to handle problem characters.

Hi Scott

I think the + char is an encoded space. That's what LC outputs instead of the 
%20 alternative.

I'm guessing that strings with characaters such as ñ (n + tilde) need to be in 
UTF8 format before using url encode.

Example:

Here's a slightly exotic version of a well-known address:

25a Thistlé Street SW Lañe, Edinburgh

If we put that into field 1, then run the following:

put uniDecode(uniEncode(field 1), "UTF8") into tA
put urlencode(tA)

it gives: 25a+Thistl%C3%A9+Street+SW+La%C3%B1e%2C+Edinburgh

If we try this url in a browser:

maps.google.com/maps?q=25a+Thistl%C3%A9+Street+SW+La%C3%B1e%2C+Edinburgh

Apologies if any of the above gets rearranged in the mail.

Dave
___
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


How to target selected field of another stack

2012-09-25 Thread Brahmanathaswami
I want to add a pull down menu to a small tools palette stack (B) that 
acts on the fields of a second "main" stack (A).


even if the window mode of the tools stack (B) is palette, the traversal 
of the pull down menu is off and I have my cursor in a text field of the 
"main" stack (A)... the focusedObject() always returns the card of the 
tools stack (B) and not the field I have my cursor in.


Oddly "the selection" referred to in scripts of the palette stack (B) 
*does* target the cursor location/selected text of the selected field in 
stack (A)


So why can't I get the focusedObject() of that field?


Brahmanathaswami
Kauai Aadheenam


___
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


Format Accented Characters for URL?

2012-09-25 Thread Scott Rossi
Hi List:

Wondering if someone has a suggestion for URL character formatting in LCŠ

I'm trying to format a URL string to submit to Google Maps.  The string is a
street address that needs to be delimited using "+".  The complication
arises when an address contains an accented character like ñ (n + tilde).
If I change the ñ to a roman n, the address is processed, but I thought I
could use something like urlEncode to handle problem characters.

If I urlEncode the entire string, Google rejects it.  If I manually delimit
the urlEncoded string with "+", Google rejects it.  urlEncode replaces
everything in the string, including punctuation, with encoded versions, and
it seems that Google wants these characters unencoded in the string.

Is there some simple way to handle this without resorting to a character
table?  It seems I either have to maintain a table of accented characters or
a table of punctuation and symbols to swap in the URL.  Perhaps someone
already has a routine for formatting addresses with accented characters for
a URL, or maybe there's a better way to format the string?

Thanks for any suggestions/pointers.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


___
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


Re: Has anybody run into this problem?

2012-09-25 Thread Bob Sneidar
Perhaps, but I like the fact that if there is a focus border on a field, focus 
on nothing turns it off. Seems cleaner to me. 

Bob


On Sep 25, 2012, at 11:56 AM, Charles Szasz wrote:

> Bob,
> 
> Thanks! Can you also use select empty as well?
> 
> Charles Szasz
> csz...@mac.com
> 
> 
> 
> 
> 
> ___
> 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


___
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


Re: Show/Hide problem persists

2012-09-25 Thread Bob Sneidar
At this point I would have to have a copy of the problem stack. Obviously 
something else is going on here because to my knowledge no one else has been 
able to reproduce the problem. 

Bob


On Sep 25, 2012, at 11:37 AM, lunchnmeets wrote:

> Hi Again,
> 
> In previous builds I had no trouble with this code but I do have a problem 
> with my Mac and v5.5.2.
> 
> It's really strange that after executing a show or hide in a button script it 
> exits to the top. Nothing further is seen. Here's the strange part though. If 
> I use a keyDown command to send mouseUp to that button the same script for 
> that button works correctly without stopping. I can't imagine why. I tried 
> try/catch but since the script comes to a screeching halt at the show or hide 
> it never reaches "catch"
> 
> Could the problem have something to do with the fact that the pressed button 
> is in the group I'm trying to hide?
> 
> Once again thanks to Jacque, Craig, Bob and Mark for your ideas.
> 
> Joe
> Orlando, FL
> ___
> 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


___
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


Re: detect keyboard height on mobile

2012-09-25 Thread ha...@exformedia.se
According to the documentation 
http://developer.android.com/reference/android/inputmethodservice/Keyboard.html#getHeight()
 it doesn't looks like it should be that hard to implement...
...so maybe someone at Runrev could explain why they are "not able to resolve 
the bug at this point in time."

:-Håkan
___
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


Re: Has anybody run into this problem?

2012-09-25 Thread Charles Szasz
Bob,

Thanks! Can you also use select empty as well?

Charles Szasz
csz...@mac.com





___
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


Show/Hide problem persists

2012-09-25 Thread lunchnmeets

Hi Again,

In previous builds I had no trouble with this code but I do have a 
problem with my Mac and v5.5.2.


It's really strange that after executing a show or hide in a button 
script it exits to the top. Nothing further is seen. Here's the 
strange part though. If I use a keyDown command to send mouseUp to 
that button the same script for that button works correctly without 
stopping. I can't imagine why. I tried try/catch but since the script 
comes to a screeching halt at the show or hide it never reaches 
"catch"


Could the problem have something to do with the fact that the pressed 
button is in the group I'm trying to hide?


Once again thanks to Jacque, Craig, Bob and Mark for your ideas.

Joe
Orlando, FL
___
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


Re: Has anybody run into this problem?

2012-09-25 Thread Bob Sneidar
Whatever works, but I like the focus on nothing workaround. 

Bob


On Sep 25, 2012, at 11:04 AM, charles61 wrote:

> Dean,
> 
> I tried the traveralOn for the button but it did not work. I then
> substituted the new textChanged for a closeField handler and it worked! I am
> using LC 5.5.2 for the first time. Do you think it is wise to only use the
> textChanged handler and delete the closeField and exitField handlers for
> each of my data fields?
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Has-anybody-run-into-this-problem-tp4655392p4655394.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> 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


___
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


Re: Has anybody run into this problem?

2012-09-25 Thread Bob Sneidar
Yes this is "normal" behavior for a Mac. There is a workaround. In the button 
(or any button that the user might click) enter: 

focus on nothing

You can even have a mouseUp handler in the frontscript that does it for you and 
passes the mouseUp message.

Bob


On Sep 25, 2012, at 10:32 AM, Charles Szasz wrote:

> I have a number of fields that I am using the closeField and exitField 
> handlers to do calculations after the user enters  numbers in the fields. The 
> Problem I am running into is that the closeField and exitField handlers do 
> not work on the very last field when the user clicks directly on a button. I 
> have tried using the command click at 0,0 in the button that the user presses 
> after leaving a field but that does not work in LC 5.5.2. Anybody have a 
> suggestion?
> 
> Charles Szasz
> csz...@mac.com
> 
> 
> 
> 
> ___
> 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


___
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


Re: Has anybody run into this problem?

2012-09-25 Thread Charles Szasz
Dean,

The textChanged handler worked great! What do you think of using only the 
textChanged handler and delete the closeField and exitField handlers for each 
of my data entry fields?

Charles Szasz
csz...@mac.com





___
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


Re: Has anybody run into this problem?

2012-09-25 Thread charles61
Dean,

I tried the traveralOn for the button but it did not work. I then
substituted the new textChanged for a closeField handler and it worked! I am
using LC 5.5.2 for the first time. Do you think it is wise to only use the
textChanged handler and delete the closeField and exitField handlers for
each of my data fields?



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Has-anybody-run-into-this-problem-tp4655392p4655394.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Has anybody run into this problem?

2012-09-25 Thread Devin Asay
On Sep 25, 2012, at 11:32 AM, Charles Szasz wrote:

> I have a number of fields that I am using the closeField and exitField 
> handlers to do calculations after the user enters  numbers in the fields. The 
> Problem I am running into is that the closeField and exitField handlers do 
> not work on the very last field when the user clicks directly on a button. I 
> have tried using the command click at 0,0 in the button that the user presses 
> after leaving a field but that does not work in LC 5.5.2. Anybody have a 
> suggestion?

Charles,

A couple of thoughts (not tested.)

Try setting the traversalOn (Focus with keyboard in the prop inspector) to true 
for the button.

Try handling the new textChanged message in addition to the close/exitField 
messages.

HTH

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University


___
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


Has anybody run into this problem?

2012-09-25 Thread Charles Szasz
I have a number of fields that I am using the closeField and exitField handlers 
to do calculations after the user enters  numbers in the fields. The Problem I 
am running into is that the closeField and exitField handlers do not work on 
the very last field when the user clicks directly on a button. I have tried 
using the command click at 0,0 in the button that the user presses after 
leaving a field but that does not work in LC 5.5.2. Anybody have a suggestion?

Charles Szasz
csz...@mac.com




___
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


Re: Oval Bug in iOS

2012-09-25 Thread Bob Sneidar
set the fat of the selectedObject to 31. I like it!

Bob


On Sep 25, 2012, at 10:14 AM, Roger Guay wrote:

> Apparently there is little interest in this obscure behavior, but for the 
> record, ovals with line sizes of about 30 or more show a small empty sector 
> at about the 3 o’clock position in iOS.
> 
> In previous posts, I thought this problem was related to my script used to 
> incrementally grow rings. Not so. Static or dynamic ovals, opaque or not, 
> with line sizes of about 30 show this defect, and it gets worse with 
> increasing lineSizes.
> 
> Just a word of caution to you fat lineSize oval users out there!! (To be 
> clear, fat is meant to be the modifier of lineSize . . . not users in the 
> previous sentence.)
> 
> Regards,
> Roger


___
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


Re: Oval Bug in iOS

2012-09-25 Thread Roger Guay
Apparently there is little interest in this obscure behavior, but for the 
record, ovals with line sizes of about 30 or more show a small empty sector at 
about the 3 o’clock position in iOS.

In previous posts, I thought this problem was related to my script used to 
incrementally grow rings. Not so. Static or dynamic ovals, opaque or not, with 
line sizes of about 30 show this defect, and it gets worse with increasing 
lineSizes.

Just a word of caution to you fat lineSize oval users out there!! (To be clear, 
fat is meant to be the modifier of lineSize . . . not users in the previous 
sentence.)

Regards,
Roger
___
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


Re: Trouble with export image

2012-09-25 Thread Graham Samuel
Since writing the query below, I realise that sometimes 'export' doesn't 
export: it produces an (undocumented) result "can't open file" which seems 
inappropriate. I had somehow messed up the file path and hadn't noticed. There 
was a different problem with the framing of the image - hard to track down but 
not worth explaining. Sorry for the bandwidth.


Graham

Earlier post:

> I seem to be going crazy, but I can't see what I'm doing wrong. I have an 
> image say "myImage", and I export it with a command like
> 
> export img "myImage" of cd "myCard" of stack "myStack" to URL ("binfile:" & 
> somePath &"/"&someFileName) as JPEG
> 
> This works, and the file appears, but it is not the right size: I mean if I do
> 
> put the rect of img "myImage"
> 
> immediately after the 'export', I get the rect I expected from the remainder 
> of my code: but if I look at the actual file with say GraphicConverter on a 
> Mac, then I find the image is cropped vertically.
> 
> I suppose I did something wrong, but I can't think what.
> 
> Any ideas?
> 
> TIA
> 
> Graham

___
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